pub struct InMemoryKeyringStore { /* private fields */ }Expand description
In-memory keyring (tests only).
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryKeyringStore
impl Debug for InMemoryKeyringStore
Source§impl Default for InMemoryKeyringStore
impl Default for InMemoryKeyringStore
Source§fn default() -> InMemoryKeyringStore
fn default() -> InMemoryKeyringStore
Returns the “default value” for a type. Read more
Source§impl KeyringStore for InMemoryKeyringStore
impl KeyringStore for InMemoryKeyringStore
Source§fn get(&self, key: &str) -> Result<Option<String>, SecretsError>
fn get(&self, key: &str) -> Result<Option<String>, SecretsError>
Read a secret. Returns
Ok(None) if no entry exists.Source§fn set(&self, key: &str, value: &str) -> Result<(), SecretsError>
fn set(&self, key: &str, value: &str) -> Result<(), SecretsError>
Write a secret, replacing any existing value.
Source§fn delete(&self, key: &str) -> Result<(), SecretsError>
fn delete(&self, key: &str) -> Result<(), SecretsError>
Remove a secret. Should not error if the entry is absent.
Source§fn backend_name(&self) -> &'static str
fn backend_name(&self) -> &'static str
Short, human-readable name of the backend (used by
doctor).Auto Trait Implementations§
impl !Freeze for InMemoryKeyringStore
impl RefUnwindSafe for InMemoryKeyringStore
impl Send for InMemoryKeyringStore
impl Sync for InMemoryKeyringStore
impl Unpin for InMemoryKeyringStore
impl UnsafeUnpin for InMemoryKeyringStore
impl UnwindSafe for InMemoryKeyringStore
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