pub enum DataLength {
Small(u8),
Medium(u16),
Large(u64),
}
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§
Source§impl Clone for DataLength
impl Clone for DataLength
Source§fn clone(&self) -> DataLength
fn clone(&self) -> DataLength
Returns a copy 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 DataLength
impl Debug for DataLength
Source§impl From<u64> for DataLength
impl From<u64> for DataLength
Source§impl From<usize> for DataLength
impl From<usize> for DataLength
Source§impl PartialEq for DataLength
impl PartialEq for DataLength
Source§impl TryFrom<DataLength> for u64
impl TryFrom<DataLength> for u64
Source§impl TryFrom<DataLength> for usize
impl TryFrom<DataLength> for usize
impl Copy for DataLength
impl StructuralPartialEq for DataLength
Auto Trait Implementations§
impl Freeze for DataLength
impl RefUnwindSafe for DataLength
impl Send for DataLength
impl Sync for DataLength
impl Unpin for DataLength
impl UnwindSafe for DataLength
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