pub struct Frame {
pub magic: u16,
pub flags: u16,
pub length: u32,
pub target: [u8; 32],
pub crc32: u32,
pub payload: Arc<[u8]>,
pub mac: Option<[u8; 32]>,
}Fields§
§magic: u16§flags: u16§length: u32§target: [u8; 32]§crc32: u32§payload: Arc<[u8]>Shared, immutable payload bytes. Arc<[u8]> so fan-out to N subscribers
(broadcast, event bus) and per-write framing clone the reference, not
the bytes.
mac: Option<[u8; 32]>32-byte HMAC tag, present iff flags & FLAG_MAC_PRESENT != 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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