pub enum CustodyChoice<T: KeyMaterial> {
Keyring,
Passphrase(Passphrase),
InMemory,
Custom(Arc<dyn Custody<T>>),
}Expand description
Where this device keeps T (E1).
Variants§
Keyring
The OS keychain under the service registered at startup.
Passphrase(Passphrase)
A file sealed with a key derived from this passphrase.
InMemory
Starts empty; holds only this handle’s session: what opening, creation, restore or join puts there.
Custom(Arc<dyn Custody<T>>)
The app’s own store for T.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CustodyChoice<T>
impl<T> !RefUnwindSafe for CustodyChoice<T>
impl<T> Send for CustodyChoice<T>
impl<T> Sync for CustodyChoice<T>
impl<T> Unpin for CustodyChoice<T>
impl<T> UnsafeUnpin for CustodyChoice<T>
impl<T> !UnwindSafe for CustodyChoice<T>
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