pub struct Length(pub VariableLengthInteger);Expand description
A length of the PacketNumber and Payload fields in bytes following [Section 17.2].
description
Defined in Section 17.2.
Tuple Fields§
§0: VariableLengthIntegerImplementations§
Trait Implementations§
impl Copy for Length
impl Eq for Length
Source§impl Ord for Length
impl Ord for Length
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Length
impl PartialOrd for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnsafeUnpin for Length
impl UnwindSafe for Length
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