pub struct MemorySecretStore { /* private fields */ }Expand description
In-memory secret store for tests and for the headless/CI path.
Never use it in a shipped application: the values live in plain process memory and are gone on restart.
Implementations§
Trait Implementations§
Source§impl Debug for MemorySecretStore
impl Debug for MemorySecretStore
Source§impl Default for MemorySecretStore
impl Default for MemorySecretStore
Source§fn default() -> MemorySecretStore
fn default() -> MemorySecretStore
Returns the “default value” for a type. Read more
Source§impl SecretStore for MemorySecretStore
impl SecretStore for MemorySecretStore
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 SecretKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Secret>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 SecretKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Secret>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Ok(None) when no secret is stored under key — a missing key is not an error.Auto Trait Implementations§
impl !Freeze for MemorySecretStore
impl !RefUnwindSafe for MemorySecretStore
impl Send for MemorySecretStore
impl Sync for MemorySecretStore
impl Unpin for MemorySecretStore
impl UnsafeUnpin for MemorySecretStore
impl UnwindSafe for MemorySecretStore
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