pub struct MsgLen(pub u32);Expand description
Length of a message, encoded in a fixed-size way
In a couple of places it of the protocol it’s important that a 32-bit length field is encoded as fixed-size.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for MsgLen
impl Eq for MsgLen
Source§impl Ord for MsgLen
impl Ord for MsgLen
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MsgLen
impl PartialOrd for MsgLen
impl StructuralPartialEq for MsgLen
Auto Trait Implementations§
impl Freeze for MsgLen
impl RefUnwindSafe for MsgLen
impl Send for MsgLen
impl Sync for MsgLen
impl Unpin for MsgLen
impl UnsafeUnpin for MsgLen
impl UnwindSafe for MsgLen
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