pub struct MessageHeader {
pub size: AtomicU32,
/* private fields */
}Expand description
Message header. size is the cross-thread control word (AtomicU32).
The header occupies exactly 8 bytes (one ring-buffer block). The payload immediately follows and stores:
[info_ptr: *const StaticInfo (8B)] [timestamp: i64 (8B)] [encoded args...]Layout constants PAYLOAD_INFO_OFFSET, PAYLOAD_TIMESTAMP_OFFSET,
PAYLOAD_ARGS_OFFSET, and PAYLOAD_HEADER_SIZE describe the payload
structure.
Fields§
§size: AtomicU32Total message size in bytes (header + payload), used as an atomic control word.
Implementations§
Source§impl MessageHeader
impl MessageHeader
Auto Trait Implementations§
impl !Freeze for MessageHeader
impl RefUnwindSafe for MessageHeader
impl Send for MessageHeader
impl Sync for MessageHeader
impl Unpin for MessageHeader
impl UnsafeUnpin for MessageHeader
impl UnwindSafe for MessageHeader
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