pub struct MemoryStore { /* private fields */ }Expand description
An in-memory CredentialStore, for tests and for callers that want the
keychain code paths without a keychain.
Implementations§
Source§impl MemoryStore
impl MemoryStore
Trait Implementations§
Source§impl CredentialStore for MemoryStore
impl CredentialStore for MemoryStore
Source§fn set(&self, account: &str, secret: &str) -> Result<(), String>
fn set(&self, account: &str, secret: &str) -> Result<(), String>
Store
secret under account, replacing anything already there.Source§impl Debug for MemoryStore
impl Debug for MemoryStore
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryStore
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnsafeUnpin for MemoryStore
impl UnwindSafe for MemoryStore
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