pub struct Msg(pub Vec<u8>);Expand description
A message received from a remote.
This is just a single buffer. The first 32 bytes are the public key
of the sender, or 28 0s followed by a 4 byte command. Any remaining bytes are the message. The buffer
contained in this type is guaranteed to be at least 32 bytes long.
Tuple Fields§
§0: Vec<u8>Implementations§
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnwindSafe for Msg
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