pub struct RawFrame {
pub id: u32,
pub flags: u8,
pub body: Vec<u8>,
}Expand description
A frame with the binary header parsed but the body left untouched.
Used by routers, relays, and FFI consumers that want to handle framing
without interpreting the control or raw data body. The body
field contains the exact 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 body bytes. flags determines whether these are CBOR control bytes or raw bulk bytes.
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