[−][src]Enum securestore::KeySource
Used to specify where encryption/decryption keys should be loaded from
Variants (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.
Load the keys from a binary file on-disk
Password(&'a str)
Derive keys from the specified password
Automatically generate new keys from a secure RNG.
SecretsManager::export_keyfile()
should be used to export the
keys before the instance is disposed.
Auto Trait Implementations
impl<'a, P> RefUnwindSafe for KeySource<'a, P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, P> Send for KeySource<'a, P> where
P: Send,
P: Send,
impl<'a, P> Sync for KeySource<'a, P> where
P: Sync,
P: Sync,
impl<'a, P> Unpin for KeySource<'a, P> where
P: Unpin,
P: Unpin,
impl<'a, P> UnwindSafe for KeySource<'a, P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,