pub struct HeaderMessage {
pub msg_type: u16,
pub data: Bytes,
pub flags: u8,
}Expand description
A raw header message (type + data bytes, not yet parsed into a specific message).
Fields§
§msg_type: u16Message type ID.
data: BytesRaw message data (interpretation depends on type).
flags: u8Message flags.
Trait Implementations§
Source§impl Clone for HeaderMessage
impl Clone for HeaderMessage
Source§fn clone(&self) -> HeaderMessage
fn clone(&self) -> HeaderMessage
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 moreAuto Trait Implementations§
impl !Freeze for HeaderMessage
impl RefUnwindSafe for HeaderMessage
impl Send for HeaderMessage
impl Sync for HeaderMessage
impl Unpin for HeaderMessage
impl UnsafeUnpin for HeaderMessage
impl UnwindSafe for HeaderMessage
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