reth_storage_api

Trait PruneCheckpointWriter

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

The trait for updating prune checkpoint related data.

Required Methods§

Source

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

Save prune checkpoint.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

impl<T: PruneCheckpointWriter + ?Sized> PruneCheckpointWriter for Arc<T>
where Arc<T>: Send + Sync,

Source§

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

Implementors§