pub struct Frame<H> {
pub header: H,
pub payload: Vec<u8>,
pub span: Range<u64>,
}Expand description
A header and its bytes, and where the frame lies in its stream.
Fields§
§header: H§payload: Vec<u8>§span: Range<u64>Trait Implementations§
impl<H: Eq> Eq for Frame<H>
impl<H: PartialEq> StructuralPartialEq for Frame<H>
Auto Trait Implementations§
impl<H> Forget for Frame<H>
impl<H> Freeze for Frame<H>
impl<H> Move for Frame<H>
impl<H> RefUnwindSafe for Frame<H>where
H: RefUnwindSafe,
impl<H> Send for Frame<H>
impl<H> Sync for Frame<H>
impl<H> Unpin for Frame<H>
impl<H> UnsafeUnpin for Frame<H>
impl<H> UnwindSafe for Frame<H>where
H: UnwindSafe,
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