pub struct NoopStore;Expand description
Content-key store that never retains keys.
This is useful for commands or tests that want Vault’s create/open
helpers without enabling cache-only reopening.
Trait Implementations§
Source§impl ContentKeyStore for NoopStore
impl ContentKeyStore for NoopStore
Source§fn get_content_key(
&self,
_lockbox_id: LockboxId,
) -> Result<Option<SecureVec>, Error>
fn get_content_key( &self, _lockbox_id: LockboxId, ) -> Result<Option<SecureVec>, Error>
Returns the cached content key for
lockbox_id, if one is available.Source§fn put_content_key(
&self,
_lockbox_id: LockboxId,
_key: SecureVec,
) -> Result<(), Error>
fn put_content_key( &self, _lockbox_id: LockboxId, _key: SecureVec, ) -> Result<(), Error>
Stores the opened content key for
lockbox_id.Source§fn forget_content_key(&self, _lockbox_id: LockboxId) -> Result<(), Error>
fn forget_content_key(&self, _lockbox_id: LockboxId) -> Result<(), Error>
Removes the cached content key for
lockbox_id.Source§fn forget_all_content_keys(&self) -> Result<(), Error>
fn forget_all_content_keys(&self) -> Result<(), Error>
Removes all cached content keys known to this store.
impl Copy for NoopStore
Auto Trait Implementations§
impl Freeze for NoopStore
impl RefUnwindSafe for NoopStore
impl Send for NoopStore
impl Sync for NoopStore
impl Unpin for NoopStore
impl UnsafeUnpin for NoopStore
impl UnwindSafe for NoopStore
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