pub trait LocalContentSnapshotReader: Send + Sync {
// Required method
fn read_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 LocalContentSnapshot,
offset: u64,
length: u64,
) -> Pin<Box<dyn Future<Output = StoreResult<Bytes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Product-owned reader for immutable local snapshot bytes.
The reader must resolve the exact opaque LocalContentSnapshot::reference and return the
complete requested range from that immutable generation. Filesystem paths, database rows, and
provider-cache layouts remain private to the product implementation.
Required Methods§
Sourcefn read_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 LocalContentSnapshot,
offset: u64,
length: u64,
) -> Pin<Box<dyn Future<Output = StoreResult<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 LocalContentSnapshot,
offset: u64,
length: u64,
) -> Pin<Box<dyn Future<Output = StoreResult<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads one non-empty range from an immutable local snapshot.