pub(crate) struct SubprotocolEntry {
pub(crate) proto: Protocol,
pub(crate) supported: u64,
}
Expand description
Representation of a set of versions supported by a protocol.
For now, we only use this type for unrecognized protocols.
Fields§
§proto: Protocol
Which protocol’s versions does this describe?
supported: u64
A bit-vector defining which versions are supported. If bit
(1<<i)
is set, then protocol version i
is supported.
Trait Implementations§
Source§impl Clone for SubprotocolEntry
impl Clone for SubprotocolEntry
Source§fn clone(&self) -> SubprotocolEntry
fn clone(&self) -> SubprotocolEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubprotocolEntry
impl Debug for SubprotocolEntry
Source§impl FromStr for SubprotocolEntry
A single SubprotocolEntry is parsed from a string of the format
Name=Versions, where Versions is a comma-separated list of
integers or ranges of integers.
impl FromStr for SubprotocolEntry
A single SubprotocolEntry is parsed from a string of the format Name=Versions, where Versions is a comma-separated list of integers or ranges of integers.
Source§impl Hash for SubprotocolEntry
impl Hash for SubprotocolEntry
Source§impl Ord for SubprotocolEntry
impl Ord for SubprotocolEntry
Source§fn cmp(&self, other: &SubprotocolEntry) -> Ordering
fn cmp(&self, other: &SubprotocolEntry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SubprotocolEntry
impl PartialEq for SubprotocolEntry
Source§impl PartialOrd for SubprotocolEntry
impl PartialOrd for SubprotocolEntry
impl Eq for SubprotocolEntry
impl StructuralPartialEq for SubprotocolEntry
Auto Trait Implementations§
impl Freeze for SubprotocolEntry
impl RefUnwindSafe for SubprotocolEntry
impl Send for SubprotocolEntry
impl Sync for SubprotocolEntry
impl Unpin for SubprotocolEntry
impl UnwindSafe for SubprotocolEntry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more