reth_provider

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>

Fetch the prune checkpoint for the given segment.

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
where T: 'a + PruneCheckpointReader + ?Sized, &'a T: Send + Sync,

§

impl<T> PruneCheckpointReader for Arc<T>

Implementors§