pub struct Chunk<'data> {
pub kind: ChunkKind,
pub buf: &'data [u8],
}
Expand description
Chunk represents of a chunk of data in the output stream
format:
1 byte: kind tag
little endian 4 byte word: length prefix
N bytes: data
Fields§
§kind: ChunkKind
§buf: &'data [u8]
Trait Implementations§
impl<'data> StructuralPartialEq for Chunk<'data>
Auto Trait Implementations§
impl<'data> Freeze for Chunk<'data>
impl<'data> RefUnwindSafe for Chunk<'data>
impl<'data> Send for Chunk<'data>
impl<'data> Sync for Chunk<'data>
impl<'data> Unpin for Chunk<'data>
impl<'data> UnwindSafe for Chunk<'data>
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