pub trait PruneCheckpointReader: Send + Sync {
// Required methods
fn get_prune_checkpoint(
&self,
segment: PruneSegment,
) -> ProviderResult<Option<PruneCheckpoint>>;
fn get_prune_checkpoints(
&self,
) -> ProviderResult<Vec<(PruneSegment, PruneCheckpoint)>>;
}
Expand description
The trait for fetching prune checkpoint related data.
Required Methods§
Sourcefn get_prune_checkpoint(
&self,
segment: PruneSegment,
) -> ProviderResult<Option<PruneCheckpoint>>
fn get_prune_checkpoint( &self, segment: PruneSegment, ) -> ProviderResult<Option<PruneCheckpoint>>
Fetch the prune checkpoint for the given segment.
Sourcefn get_prune_checkpoints(
&self,
) -> ProviderResult<Vec<(PruneSegment, PruneCheckpoint)>>
fn get_prune_checkpoints( &self, ) -> ProviderResult<Vec<(PruneSegment, PruneCheckpoint)>>
Fetch all the prune checkpoints.