Trait UpdateAggregatesStorage

Source
pub trait UpdateAggregatesStorage<Types>
where Types: NodeType, Header<Types>: QueryableHeader<Types>,
{ // Required method fn update_aggregates( &mut self, aggregate: Aggregate<Types>, blocks: &[PayloadMetadata<Types>], ) -> impl Future<Output = Result<Aggregate<Types>>> + Send; }

Required Methods§

Source

fn update_aggregates( &mut self, aggregate: Aggregate<Types>, blocks: &[PayloadMetadata<Types>], ) -> impl Future<Output = Result<Aggregate<Types>>> + Send

Update aggregate statistics based on a new block.

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, T: Revert + Send> UpdateAggregatesStorage<Types> for hotshot_query_service::data_source::storage::fs::Transaction<T>
where Types: NodeType, Header<Types>: QueryableHeader<Types>,

Source§

impl<Types: NodeType> UpdateAggregatesStorage<Types> for hotshot_query_service::data_source::storage::sql::Transaction<Write>
where Header<Types>: QueryableHeader<Types>,