pub enum StoredSecret {
Key(Zeroizing<[u8; 32]>),
Passphrase(Zeroizing<String>),
}Expand description
A secret as a key store keeps it, typed so an entry is never guessed.
Variants§
Key(Zeroizing<[u8; 32]>)
A key: key: and 64 hex digits.
Passphrase(Zeroizing<String>)
A passphrase: passphrase: and the passphrase.
Implementations§
Auto Trait Implementations§
impl Forget for StoredSecret
impl Freeze for StoredSecret
impl Move for StoredSecret
impl RefUnwindSafe for StoredSecret
impl Send for StoredSecret
impl Sync for StoredSecret
impl Unpin for StoredSecret
impl UnsafeUnpin for StoredSecret
impl UnwindSafe for StoredSecret
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