Enum tungstenite::protocol::frame::frame::LengthFormat
source · enum LengthFormat {
U8(u8),
U16,
U64,
}
Expand description
Handling of the length format.
Variants§
Implementations§
source§impl LengthFormat
impl LengthFormat
sourcefn for_length(length: u64) -> Self
fn for_length(length: u64) -> Self
Get the length format for a given data size.
sourcefn extra_bytes(&self) -> usize
fn extra_bytes(&self) -> usize
Get the size of the length encoding.
sourcefn length_byte(&self) -> u8
fn length_byte(&self) -> u8
Encode the given length.
Auto Trait Implementations§
impl RefUnwindSafe for LengthFormat
impl Send for LengthFormat
impl Sync for LengthFormat
impl Unpin for LengthFormat
impl UnwindSafe for LengthFormat
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