Skip to main content

SnapshotReadView

Trait SnapshotReadView 

Source
pub trait SnapshotReadView: Send {
    // Required methods
    fn snapshot_id(&self) -> SnapshotId;
    fn boundary(&self) -> SnapshotBoundary;
    fn next_records<'life0, 'async_trait>(
        &'life0 mut self,
        max_records: usize,
        max_uncompressed_bytes: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SnapshotEntity>, BootstrapStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Open consistent database view from which bounded canonical snapshot entities are streamed.

Required Methods§

Source

fn snapshot_id(&self) -> SnapshotId

Source

fn boundary(&self) -> SnapshotBoundary

Source

fn next_records<'life0, 'async_trait>( &'life0 mut self, max_records: usize, max_uncompressed_bytes: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<SnapshotEntity>, BootstrapStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§