pub trait UpdateAggregatesStorage<Types>{
// Required method
fn update_aggregates(
&mut self,
aggregate: Aggregate<Types>,
blocks: &[PayloadMetadata<Types>],
) -> impl Future<Output = Result<Aggregate<Types>>> + Send;
}
Required Methods§
Sourcefn update_aggregates(
&mut self,
aggregate: Aggregate<Types>,
blocks: &[PayloadMetadata<Types>],
) -> impl Future<Output = Result<Aggregate<Types>>> + Send
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.