Skip to main content

PruneStorage

Trait PruneStorage 

Source
pub trait PruneStorage: PrunerConfig {
    type Pruner<'a>: Default + Send
       where Self: 'a;

    // Provided method
    fn prune<'a, 'life0, 'async_trait>(
        &'a self,
        _pruner: &'life0 mut Self::Pruner<'a>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Associated Types§

Source

type Pruner<'a>: Default + Send where Self: 'a

Provided Methods§

Source

fn prune<'a, 'life0, 'async_trait>( &'a self, _pruner: &'life0 mut Self::Pruner<'a>, ) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PruneStorage for SqlStorage

Source§

type Pruner<'a> = Option<Pruner<'a>>

Source§

impl<S> PruneStorage for FailStorage<S>
where S: PruneStorage + Sync,

Source§

type Pruner<'a> = <S as PruneStorage>::Pruner<'a> where S: 'a

Source§

impl<Types: NodeType> PruneStorage for FileSystemStorage<Types>
where Header<Types>: QueryableHeader<Types>, Payload<Types>: QueryablePayload<Types>,

Source§

type Pruner<'a> = ()