#[repr(C)]pub struct FrameHeader {
pub len: u32,
pub opcode: u16,
pub flags: u16,
pub request_id: u32,
pub status: i32,
}Expand description
16-byte little-endian pipe frame header. to_bytes/from_bytes are
pure byte conversions — the MAX_PAYLOAD_LEN policy lives in
fmf-proto’s decode_header/read_frame.
Fields§
§len: u32Payload length in bytes (the header itself excluded).
opcode: u16Frame operation code (request/response/event kind).
flags: u16Per-opcode bit flags.
request_id: u32Request/response correlation; 0 on event pushes.
status: i32Status code (crate::codes); meaningful on responses only.
Implementations§
Trait Implementations§
Source§impl Clone for FrameHeader
impl Clone for FrameHeader
Source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
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 moreSource§impl Debug for FrameHeader
impl Debug for FrameHeader
Source§impl PartialEq for FrameHeader
impl PartialEq for FrameHeader
impl Copy for FrameHeader
impl Eq for FrameHeader
impl StructuralPartialEq for FrameHeader
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnsafeUnpin for FrameHeader
impl UnwindSafe for FrameHeader
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