pub enum Secret {
Passphrase(Zeroizing<String>),
Key(Zeroizing<[u8; 32]>),
}Expand description
A secret that opens a brain.
Variants§
Passphrase(Zeroizing<String>)
A passphrase a person chose.
Key(Zeroizing<[u8; 32]>)
A raw 256-bit key.
Implementations§
Auto Trait Implementations§
impl Forget for Secret
impl Freeze for Secret
impl Move for Secret
impl RefUnwindSafe for Secret
impl Send for Secret
impl Sync for Secret
impl Unpin for Secret
impl UnsafeUnpin for Secret
impl UnwindSafe for Secret
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