HasherLoader

Trait HasherLoader 

Source
pub trait HasherLoader: Send + Sync {
    // Required method
    fn load_hasher<'life0, 'async_trait>(
        &'life0 self,
        code: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Hasher>, HeliaError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Hasher loader for loading multihash hashers

Required Methods§

Source

fn load_hasher<'life0, 'async_trait>( &'life0 self, code: u64, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Hasher>, HeliaError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Load a hasher by its code

Implementors§