Skip to main content

BatchStoreExt

Trait BatchStoreExt 

Source
pub trait BatchStoreExt: BatchStore + Sync {
    // Provided method
    fn get_usable(
        &self,
        id: &BatchId,
        confirmation_threshold: u64,
    ) -> impl Future<Output = Result<Batch, BatchStoreError<Self::Error>>> + Send { ... }
}
Available on crate feature std only.
Expand description

Extension methods for BatchStore.

Provided Methods§

Source

fn get_usable( &self, id: &BatchId, confirmation_threshold: u64, ) -> impl Future<Output = Result<Batch, BatchStoreError<Self::Error>>> + Send

Gets a batch and verifies it’s usable.

Returns an error if the batch doesn’t exist, isn’t usable yet, or has expired.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§