#[repr(C)]pub struct MsgHeader {
pub version: u16,
pub header_len: u16,
pub encoding: u16,
pub flags: u16,
pub correlation_id: u64,
pub deadline_ns: u64,
}Expand description
Message header at the start of each payload.
Layout: payload = [MsgHeader][metadata...][body...]
Fields§
§version: u16Message format version.
header_len: u16Total header size (including this struct + metadata).
encoding: u16Body encoding (Postcard, Json, Raw).
flags: u16Header flags (compression, etc.).
correlation_id: u64Reply-to: msg_id of request.
deadline_ns: u64Absolute deadline (nanos since epoch, 0 = none).
Implementations§
Trait Implementations§
impl Copy for MsgHeader
Auto Trait Implementations§
impl Freeze for MsgHeader
impl RefUnwindSafe for MsgHeader
impl Send for MsgHeader
impl Sync for MsgHeader
impl Unpin for MsgHeader
impl UnwindSafe for MsgHeader
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)