Trait AggregatesStorage

Source
pub trait AggregatesStorage<Types>
where Types: NodeType, Header<Types>: QueryableHeader<Types>,
{ // Required methods fn aggregates_height( &mut self, ) -> impl Future<Output = Result<usize>> + Send; fn load_prev_aggregate( &mut self, ) -> impl Future<Output = Result<Option<Aggregate<Types>>>> + Send; }

Required Methods§

Source

fn aggregates_height(&mut self) -> impl Future<Output = Result<usize>> + Send

The block height for which aggregate statistics are currently available.

Source

fn load_prev_aggregate( &mut self, ) -> impl Future<Output = Result<Option<Aggregate<Types>>>> + Send

the last aggregate

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<Types, Mode: TransactionMode> AggregatesStorage<Types> for hotshot_query_service::data_source::storage::sql::Transaction<Mode>
where Types: NodeType, Header<Types>: QueryableHeader<Types>,

Source§

impl<Types, T: Revert + Send> AggregatesStorage<Types> for hotshot_query_service::data_source::storage::fs::Transaction<T>
where Types: NodeType, Header<Types>: QueryableHeader<Types>,