pub struct MemoryCredentialStore { /* private fields */ }Expand description
A DashMap-backed CredentialStore mapping key strings to opaque secret
bytes. Cloning shares the same underlying map.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryCredentialStore
impl Clone for MemoryCredentialStore
Source§fn clone(&self) -> MemoryCredentialStore
fn clone(&self) -> MemoryCredentialStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CredentialStore for MemoryCredentialStore
impl CredentialStore for MemoryCredentialStore
Source§fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the secret bytes stored under
key. Read moreSource§impl Default for MemoryCredentialStore
impl Default for MemoryCredentialStore
Source§fn default() -> MemoryCredentialStore
fn default() -> MemoryCredentialStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryCredentialStore
impl !UnwindSafe for MemoryCredentialStore
impl Freeze for MemoryCredentialStore
impl Send for MemoryCredentialStore
impl Sync for MemoryCredentialStore
impl Unpin for MemoryCredentialStore
impl UnsafeUnpin for MemoryCredentialStore
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