Enum websocket_codec::protocol::DataLength
source · [−]Expand description
Describes the length of the payload data within an individual WebSocket frame.
Variants
Small(u8)
Holds the length of a payload of 125 bytes or shorter.
Medium(u16)
Holds the length of a payload between 126 and 65535 bytes.
Large(u64)
Holds the length of a payload between 65536 and 2^63 bytes.
Trait Implementations
sourceimpl Clone for DataLength
impl Clone for DataLength
sourcefn clone(&self) -> DataLength
fn clone(&self) -> DataLength
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 DataLength
impl Debug for DataLength
sourceimpl From<u64> for DataLength
impl From<u64> for DataLength
sourceimpl From<usize> for DataLength
impl From<usize> for DataLength
sourceimpl PartialEq<DataLength> for DataLength
impl PartialEq<DataLength> for DataLength
sourcefn eq(&self, other: &DataLength) -> bool
fn eq(&self, other: &DataLength) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataLength) -> bool
fn ne(&self, other: &DataLength) -> bool
This method tests for !=
.
sourceimpl TryFrom<DataLength> for u64
impl TryFrom<DataLength> for u64
sourceimpl TryFrom<DataLength> for usize
impl TryFrom<DataLength> for usize
impl Copy for DataLength
impl StructuralPartialEq for DataLength
Auto Trait Implementations
impl RefUnwindSafe for DataLength
impl Send for DataLength
impl Sync for DataLength
impl Unpin for DataLength
impl UnwindSafe for DataLength
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>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
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