Skip to main content

UtxoStore

Trait UtxoStore 

Source
pub trait UtxoStore: Send {
    // Required methods
    fn narrow_refs(
        &self,
        pattern: UtxoPattern<'_>,
    ) -> impl Future<Output = Result<HashSet<UtxoRef>, Error>> + Send;
    fn fetch_utxos(
        &self,
        refs: HashSet<UtxoRef>,
    ) -> impl Future<Output = Result<UtxoSet, Error>> + Send;
}

Required Methods§

Source

fn narrow_refs( &self, pattern: UtxoPattern<'_>, ) -> impl Future<Output = Result<HashSet<UtxoRef>, Error>> + Send

Source

fn fetch_utxos( &self, refs: HashSet<UtxoRef>, ) -> impl Future<Output = Result<UtxoSet, Error>> + Send

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§