pub struct MemoryVault(/* private fields */);Expand description
Non-persistent vault for tests and throwaway sessions.
Implementations§
Source§impl MemoryVault
impl MemoryVault
Trait Implementations§
Source§impl Default for MemoryVault
impl Default for MemoryVault
Source§impl KeyVault for MemoryVault
impl KeyVault for MemoryVault
fn get(&self, label: &str) -> Result<Option<Zeroizing<Vec<u8>>>>
fn put(&self, label: &str, value: &[u8]) -> Result<()>
fn delete(&self, label: &str) -> Result<bool>
Source§fn labels(&self) -> Result<Vec<String>>
fn labels(&self) -> Result<Vec<String>>
Every label held (for backup). A vault that cannot list says so.
Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
A short name for logs (“memory”, “file+keychain”, “file+keyfile”).
Auto Trait Implementations§
impl !Freeze for MemoryVault
impl RefUnwindSafe for MemoryVault
impl Send for MemoryVault
impl Sync for MemoryVault
impl Unpin for MemoryVault
impl UnsafeUnpin for MemoryVault
impl UnwindSafe for MemoryVault
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