pub enum MaybeFrame {
None,
Unknown(u64),
Known(FrameType),
}Expand description
The type used to refer to FrameTypes in closing and transport errors.
Variants§
None
Not attributed to any particular FrameType.
Unknown(u64)
Attributed to some frame type this implementation does not recognize.
Known(FrameType)
Attributed to a specific FrameType, never FrameType::Padding.
Trait Implementations§
Source§impl Clone for MaybeFrame
impl Clone for MaybeFrame
Source§fn clone(&self) -> MaybeFrame
fn clone(&self) -> MaybeFrame
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 MaybeFrame
impl Debug for MaybeFrame
Source§impl Decodable for MaybeFrame
impl Decodable for MaybeFrame
Source§impl Display for MaybeFrame
impl Display for MaybeFrame
Source§impl Encodable for MaybeFrame
impl Encodable for MaybeFrame
Source§impl PartialEq for MaybeFrame
impl PartialEq for MaybeFrame
impl Copy for MaybeFrame
impl Eq for MaybeFrame
impl StructuralPartialEq for MaybeFrame
Auto Trait Implementations§
impl Freeze for MaybeFrame
impl RefUnwindSafe for MaybeFrame
impl Send for MaybeFrame
impl Sync for MaybeFrame
impl Unpin for MaybeFrame
impl UnwindSafe for MaybeFrame
Blanket Implementations§
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> 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