reth::providers

Trait PruneCheckpointWriter

pub trait PruneCheckpointWriter: Send + Sync {
    // Required method
    fn save_prune_checkpoint(
        &self,
        segment: PruneSegment,
        checkpoint: PruneCheckpoint,
    ) -> Result<(), ProviderError>;
}
Expand description

The trait for updating prune checkpoint related data.

Required Methods§

fn save_prune_checkpoint( &self, segment: PruneSegment, checkpoint: PruneCheckpoint, ) -> Result<(), ProviderError>

Save prune checkpoint.

Implementations on Foreign Types§

§

impl<'a, T> PruneCheckpointWriter for &'a T
where T: 'a + PruneCheckpointWriter + ?Sized, &'a T: Send + Sync,

§

fn save_prune_checkpoint( &self, segment: PruneSegment, checkpoint: PruneCheckpoint, ) -> Result<(), ProviderError>

§

impl<T> PruneCheckpointWriter for Arc<T>

§

fn save_prune_checkpoint( &self, segment: PruneSegment, checkpoint: PruneCheckpoint, ) -> Result<(), ProviderError>

Implementors§

source§

impl<TX, Spec> PruneCheckpointWriter for DatabaseProvider<TX, Spec>
where TX: DbTxMut, Spec: Send + Sync,