Trait PruneCheckpointReader
pub trait PruneCheckpointReader: Send + Sync {
// Required methods
fn get_prune_checkpoint(
&self,
segment: PruneSegment,
) -> Result<Option<PruneCheckpoint>, ProviderError>;
fn get_prune_checkpoints(
&self,
) -> Result<Vec<(PruneSegment, PruneCheckpoint)>, ProviderError>;
}
Expand description
The trait for fetching prune checkpoint related data.
Required Methods§
fn get_prune_checkpoint(
&self,
segment: PruneSegment,
) -> Result<Option<PruneCheckpoint>, ProviderError>
fn get_prune_checkpoint( &self, segment: PruneSegment, ) -> Result<Option<PruneCheckpoint>, ProviderError>
Fetch the prune checkpoint for the given segment.
fn get_prune_checkpoints(
&self,
) -> Result<Vec<(PruneSegment, PruneCheckpoint)>, ProviderError>
fn get_prune_checkpoints( &self, ) -> Result<Vec<(PruneSegment, PruneCheckpoint)>, ProviderError>
Fetch all the prune checkpoints.
Implementations on Foreign Types§
§impl<'a, T> PruneCheckpointReader for &'a T
impl<'a, T> PruneCheckpointReader for &'a T
fn get_prune_checkpoint( &self, segment: PruneSegment, ) -> Result<Option<PruneCheckpoint>, ProviderError>
fn get_prune_checkpoints( &self, ) -> Result<Vec<(PruneSegment, PruneCheckpoint)>, ProviderError>
§impl<T> PruneCheckpointReader for Arc<T>
impl<T> PruneCheckpointReader for Arc<T>
fn get_prune_checkpoint( &self, segment: PruneSegment, ) -> Result<Option<PruneCheckpoint>, ProviderError>
fn get_prune_checkpoints( &self, ) -> Result<Vec<(PruneSegment, PruneCheckpoint)>, ProviderError>
Implementors§
impl PruneCheckpointReader for NoopProvider
Available on crate feature
test-utils
only.