pub enum CustodyChoice<T>where
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.