Skip to main content

DeepReader

Trait DeepReader 

Source
pub trait DeepReader {
    // Required method
    fn read_block(&self, block: u64, out: &mut [u8]) -> Result<()>;
}
Expand description

Read interface used by plan_insert_extent_deep to fetch any internal or leaf block referenced by an index entry on the way down. Callers wire this through a BlockDevice (or a buffered cache when running under a transaction).

Required Methods§

Source

fn read_block(&self, block: u64, out: &mut [u8]) -> Result<()>

Read exactly out.len() bytes of the block numbered block. The caller picks the buffer size (always block_size).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§