Trait PrunedHeightDataSource

Source
pub trait PrunedHeightDataSource: Sized {
    // Provided method
    fn load_pruned_height<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

fn load_pruned_height<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>
where Self: Sync + '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<D, U> PrunedHeightDataSource for ExtensibleDataSource<D, U>

Source§

impl<Types, S, P> PrunedHeightDataSource for FetchingDataSource<Types, S, P>
where Types: NodeType, S: VersionedDataSource + HasMetrics + Send + Sync + 'static, for<'a> S::ReadOnly<'a>: PrunedHeightStorage, P: Send + Sync,