pub struct BlockHandle {
pub offset: u64,
pub stored_len: u32,
pub decoded_len: u32,
pub crc32c: u32,
}Expand description
Where one stored section lives inside a segment object, and how to verify it: the CRC32C of the stored bytes and their decoded length.
Fields§
§offset: u64Zero-based byte offset of the section within its immutable segment object.
stored_len: u32Number of bytes to range-read and checksum before decoding.
decoded_len: u32Expected byte length after optional section decompression.
crc32c: u32CRC32C over the exact stored_len bytes at offset.
Trait Implementations§
Source§impl Clone for BlockHandle
impl Clone for BlockHandle
Source§fn clone(&self) -> BlockHandle
fn clone(&self) -> BlockHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockHandle
Source§impl Debug for BlockHandle
impl Debug for BlockHandle
Source§impl<'de> Deserialize<'de> for BlockHandle
impl<'de> Deserialize<'de> for BlockHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlockHandle
Source§impl PartialEq for BlockHandle
impl PartialEq for BlockHandle
Source§impl Serialize for BlockHandle
impl Serialize for BlockHandle
impl StructuralPartialEq for BlockHandle
Auto Trait Implementations§
impl Freeze for BlockHandle
impl RefUnwindSafe for BlockHandle
impl Send for BlockHandle
impl Sync for BlockHandle
impl Unpin for BlockHandle
impl UnsafeUnpin for BlockHandle
impl UnwindSafe for BlockHandle
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