#[repr(C)]pub struct FrameHeader {
pub version: u8,
pub flags: FrameFlags,
pub sequence: u64,
pub length: u32,
pub schema_id: u32,
pub checksum: u32,
}
Expand description
Frame header for wire format
Fields§
§version: u8
Protocol version (currently 1)
flags: FrameFlags
Frame type and processing flags
sequence: u64
Sequence number for ordering and deduplication
length: u32
Payload length in bytes
schema_id: u32
Optional schema ID for validation
checksum: u32
CRC32C checksum of payload (optional)
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
impl Copy 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 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