pub struct Frame {
pub header: EnvelopeHeader,
pub body: Vec<u8>,
}Expand description
A complete wire frame: the decoded envelope header plus its opaque body.
Fields§
§header: EnvelopeHeader§body: Vec<u8>Implementations§
Source§impl Frame
impl Frame
Sourcepub fn build(
ty: FrameType,
flags: Flags,
channel: u16,
epoch: u32,
corr: u64,
body: Vec<u8>,
) -> Result<Frame, FrameBuildError>
pub fn build( ty: FrameType, flags: Flags, channel: u16, epoch: u32, corr: u64, body: Vec<u8>, ) -> Result<Frame, FrameBuildError>
Build a current-version frame, filling len from the opaque body bytes.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
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