pub struct Message {
pub mtype: u8,
pub content: Vec<u8>,
}Expand description
Struct for storing a message
Fields§
§mtype: u8The type field of the message, decoded from Little-Endian (if neccessary)
content: Vec<u8>The content of the message as raw bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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