#[non_exhaustive]pub enum StoreChoice {
Auto,
File,
Custom(Arc<dyn SecretStore>),
Host(Arc<dyn DeviceKeyStore>),
Hardware(Arc<dyn HardwareDeviceKey>),
}Expand description
Which device store to use.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
The default. The 0600 key file (with key_storage_file); with feature keyring-store,
the OS credential store when it answers, else the file.
File
The file store, always (warned as key_storage_file).
Custom(Arc<dyn SecretStore>)
A key-only store the host provides; the public record stays in the data directory.
Host(Arc<dyn DeviceKeyStore>)
The host’s own store for the key and the public record (DeviceKeyStore).
Hardware(Arc<dyn HardwareDeviceKey>)
The host’s hardware key (HardwareDeviceKey); the public record stays in the data
directory. Never falls back to a software key.
Trait Implementations§
Source§impl Clone for StoreChoice
impl Clone for StoreChoice
Source§impl Debug for StoreChoice
impl Debug for StoreChoice
Auto Trait Implementations§
impl !RefUnwindSafe for StoreChoice
impl !UnwindSafe for StoreChoice
impl Forget for StoreChoice
impl Freeze for StoreChoicewhere
*const ArcInner<dyn SecretStore> is !null: Freeze,
PhantomData<ArcInner<dyn SecretStore>>: Freeze,
*const ArcInner<dyn DeviceKeyStore> is !null: Freeze,
PhantomData<ArcInner<dyn DeviceKeyStore>>: Freeze,
*const ArcInner<dyn HardwareDeviceKey> is !null: Freeze,
PhantomData<ArcInner<dyn HardwareDeviceKey>>: Freeze,
impl Move for StoreChoice
impl Send for StoreChoice
impl Sync for StoreChoice
impl Unpin for StoreChoicewhere
Arc<dyn SecretStore>: Unpin,
Arc<dyn DeviceKeyStore>: Unpin,
Arc<dyn HardwareDeviceKey>: Unpin,
impl UnsafeUnpin for StoreChoicewhere
*const ArcInner<dyn SecretStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SecretStore>>: UnsafeUnpin,
*const ArcInner<dyn DeviceKeyStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DeviceKeyStore>>: UnsafeUnpin,
*const ArcInner<dyn HardwareDeviceKey> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn HardwareDeviceKey>>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 more