Skip to main content

CacheRangeReader

Trait CacheRangeReader 

Source
pub trait CacheRangeReader {
    // Required method
    fn read_range(&self, range: Range<usize>) -> Result<Bytes>;
}
Expand description

Bounded random reads from a persistent cache payload. Backends may coalesce and align physical I/O while codecs request logical byte ranges.

Required Methods§

Source

fn read_range(&self, range: Range<usize>) -> Result<Bytes>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§