#[repr(u16)]
pub enum CloudProtoVersion {
Normal,
Connect,
Other(u16),
}Variants
Normal
All packets that don’t fall in other categories
Connect
Used for the first packets sent
Other(u16)
I haven’t seen other values used yet
Implementations
Trait Implementations
sourceimpl Clone for CloudProtoVersion
impl Clone for CloudProtoVersion
sourcefn clone(&self) -> CloudProtoVersion
fn clone(&self) -> CloudProtoVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CloudProtoVersion
impl Debug for CloudProtoVersion
sourceimpl Display for CloudProtoVersion
impl Display for CloudProtoVersion
sourceimpl From<&CloudProtoVersion> for u16
impl From<&CloudProtoVersion> for u16
sourcefn from(v: &CloudProtoVersion) -> Self
fn from(v: &CloudProtoVersion) -> Self
Converts to this type from the input type.
sourceimpl From<CloudProtoVersion> for u16
impl From<CloudProtoVersion> for u16
sourcefn from(kind: CloudProtoVersion) -> Self
fn from(kind: CloudProtoVersion) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for CloudProtoVersion
impl From<u16> for CloudProtoVersion
sourceimpl LowerHex for CloudProtoVersion
impl LowerHex for CloudProtoVersion
sourceimpl PartialEq<CloudProtoVersion> for CloudProtoVersion
impl PartialEq<CloudProtoVersion> for CloudProtoVersion
sourcefn eq(&self, other: &CloudProtoVersion) -> bool
fn eq(&self, other: &CloudProtoVersion) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl UpperHex for CloudProtoVersion
impl UpperHex for CloudProtoVersion
impl Copy for CloudProtoVersion
impl Eq for CloudProtoVersion
impl StructuralEq for CloudProtoVersion
impl StructuralPartialEq for CloudProtoVersion
Auto Trait Implementations
impl RefUnwindSafe for CloudProtoVersion
impl Send for CloudProtoVersion
impl Sync for CloudProtoVersion
impl Unpin for CloudProtoVersion
impl UnwindSafe for CloudProtoVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more