Struct lair_keystore_api::lair_store::LairStoreFactory
source · pub struct LairStoreFactory(pub Arc<dyn AsLairStoreFactory>);
Expand description
A factory abstraction allowing connecting to a lair keystore persistance backend with an unlock secret (generally derived from a user passphrase).
Tuple Fields§
§0: Arc<dyn AsLairStoreFactory>
Implementations§
source§impl LairStoreFactory
impl LairStoreFactory
sourcepub fn connect_to_store(
&self,
unlock_secret: BufReadSized<32>
) -> impl Future<Output = LairResult<LairStore>> + 'static + Send
pub fn connect_to_store( &self, unlock_secret: BufReadSized<32> ) -> impl Future<Output = LairResult<LairStore>> + 'static + Send
Connect to an existing store with the given unlock_secret.
Trait Implementations§
source§impl Clone for LairStoreFactory
impl Clone for LairStoreFactory
source§fn clone(&self) -> LairStoreFactory
fn clone(&self) -> LairStoreFactory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LairStoreFactory
impl Send for LairStoreFactory
impl Sync for LairStoreFactory
impl Unpin for LairStoreFactory
impl !UnwindSafe for LairStoreFactory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more