pub struct HeaderMessage {
pub msg_type: MessageType,
pub size: usize,
pub flags: u8,
pub creation_order: Option<u16>,
pub data: Vec<u8>,
}Expand description
A single parsed header message.
Fields§
§msg_type: MessageTypeThe message type.
size: usizeSize of the message data in bytes.
flags: u8Message flags byte.
creation_order: Option<u16>Creation order (v2 only, when tracking is enabled).
data: Vec<u8>Raw message data bytes.
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 (const: unstable) · 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