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: ProtocolWhich protocol’s versions does this describe?
supported: u64A bit-vector defining which versions are supported. If bit
(1<<i) is set, then protocol version i is supported.
Implementations§
Source§impl 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 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.
Sourcepub(crate) fn from_str(
s: &str,
strictness: ParseStrictness,
) -> Result<Self, ParseError>
pub(crate) fn from_str( s: &str, strictness: ParseStrictness, ) -> Result<Self, ParseError>
Parse a SubprotocolEntry with a given level of strictness.
Trait Implementations§
Source§impl Clone for SubprotocolEntry
impl Clone for SubprotocolEntry
Source§impl Debug for SubprotocolEntry
impl Debug for SubprotocolEntry
impl Eq for SubprotocolEntry
Source§impl Hash for SubprotocolEntry
impl Hash for SubprotocolEntry
Source§impl Ord for SubprotocolEntry
impl Ord for SubprotocolEntry
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SubprotocolEntry
impl PartialEq for SubprotocolEntry
Source§impl PartialOrd for SubprotocolEntry
impl PartialOrd 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 UnsafeUnpin for SubprotocolEntry
impl UnwindSafe for SubprotocolEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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