pub trait AsLairStoreFactory: 'static + Send + Sync {
    // Required method
    fn connect_to_store(
        &self,
        unlock_secret: BufReadSized<32>
    ) -> Pin<Box<dyn Future<Output = Result<LairStore, OneErr>> + Send + 'static, Global>>;
}
Expand description

Defines a factory that produces lair storage mechanism instances.

Required Methods§

fn connect_to_store( &self, unlock_secret: BufReadSized<32> ) -> Pin<Box<dyn Future<Output = Result<LairStore, OneErr>> + Send + 'static, Global>>

Open a store connection with given config / passphrase.

Implementors§