pub struct Block {
pub index: u32,
pub crc: u32,
pub raw_len: u32,
pub data: Vec<u8>,
}Expand description
A decoded FRAME_BLOCK payload.
Fields§
§index: u32Zero-based block index.
crc: u32CRC32 of the on-wire data payload.
raw_len: u32Decompressed length of data (== data.len() when uncompressed).
data: Vec<u8>The block bytes (possibly a compressed frame).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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