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 Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Framewhere
RawVecInner: Send,
impl Sync for Framewhere
RawVecInner: Sync,
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Framewhere
RawVecInner: UnwindSafe,
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