pub struct BlockReader<'a> {
pub block_type: BlockType,
pub compression: CompressionType,
pub checksum: u64,
pub payload: &'a [u8],
}Expand description
A parsed block read from binary data.
Fields§
§block_type: BlockTypeThe block type.
compression: CompressionTypeThe compression type.
checksum: u64The expected checksum.
payload: &'a [u8]The payload bytes (borrowed from input).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BlockReader<'a>
impl<'a> RefUnwindSafe for BlockReader<'a>
impl<'a> Send for BlockReader<'a>
impl<'a> Sync for BlockReader<'a>
impl<'a> Unpin for BlockReader<'a>
impl<'a> UnsafeUnpin for BlockReader<'a>
impl<'a> UnwindSafe for BlockReader<'a>
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