pub struct RawFrame {
pub id: u32,
pub flags: u8,
pub body: Vec<u8>,
}Expand description
A frame with the binary header parsed but the CBOR body left untouched.
Used by routers, relays, and FFI consumers that want to handle framing
without paying for CBOR (de)serialization. The body field
contains the exact CBOR-encoded Message body bytes — v, t, p —
the same bytes that follow the binary header on the wire.
Fields§
§id: u32Correlation ID. Same as Message::id.
flags: u8Frame flags. Same as Message::flags.
body: Vec<u8>Raw CBOR bytes of the message body (v, t, p). Not decoded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawFrame
impl RefUnwindSafe for RawFrame
impl Send for RawFrame
impl Sync for RawFrame
impl Unpin for RawFrame
impl UnsafeUnpin for RawFrame
impl UnwindSafe for RawFrame
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