pub struct NoopPassphraseCache;Expand description
No-op cache that never stores or returns anything.
Trait Implementations§
Source§impl PassphraseCache for NoopPassphraseCache
impl PassphraseCache for NoopPassphraseCache
Source§fn store(
&self,
_alias: &str,
_passphrase: &str,
_stored_at_unix: i64,
) -> Result<(), AgentError>
fn store( &self, _alias: &str, _passphrase: &str, _stored_at_unix: i64, ) -> Result<(), AgentError>
Store a passphrase for the given alias.
Auto Trait Implementations§
impl Freeze for NoopPassphraseCache
impl RefUnwindSafe for NoopPassphraseCache
impl Send for NoopPassphraseCache
impl Sync for NoopPassphraseCache
impl Unpin for NoopPassphraseCache
impl UnsafeUnpin for NoopPassphraseCache
impl UnwindSafe for NoopPassphraseCache
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