pub enum LengthField {
U8,
U16,
U32,
}Expand description
Size of the length field.
The size of a dynamic payload is encoded in a preceding length field which can be 1, 2, or 4 bytes long.
Variants§
Trait Implementations§
Source§impl Clone for LengthField
impl Clone for LengthField
Source§fn clone(&self) -> LengthField
fn clone(&self) -> LengthField
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 LengthField
impl Debug for LengthField
impl Copy for LengthField
Auto Trait Implementations§
impl Freeze for LengthField
impl RefUnwindSafe for LengthField
impl Send for LengthField
impl Sync for LengthField
impl Unpin for LengthField
impl UnwindSafe for LengthField
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