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, N> PruneCheckpointWriter for DatabaseProvider<TX, N>
where TX: DbTxMut, N: NodeTypes,