pub struct Frame {
pub version: u16,
pub flags: FrameFlags,
pub header_extension: Bytes,
pub payload: Bytes,
}Expand description
A parsed RCP frame.
Fields§
§version: u16Protocol version.
flags: FrameFlagsFrame flags.
header_extension: BytesOptional header extension (reserved for future use).
payload: BytesFrame payload (JSON data).
Implementations§
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