pub struct MemoryStore { /* private fields */ }Expand description
In-memory key store
Thread-safe storage backend for testing and high performance scenerios where persistence is not required, please remember that all keys are lost when dropped
Implementations§
Source§impl MemoryStore
impl MemoryStore
Trait Implementations§
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§impl KeyLifeCycle for MemoryStore
impl KeyLifeCycle for MemoryStore
Source§impl KeyStore for MemoryStore
impl KeyStore for MemoryStore
Source§fn update_metadata(&mut self, id: &KeyId, metadata: KeyMetadata) -> Result<()>
fn update_metadata(&mut self, id: &KeyId, metadata: KeyMetadata) -> Result<()>
Update key metadata
Source§fn rotate_key(&mut self, id: &KeyId) -> Result<VersionedKey>
fn rotate_key(&mut self, id: &KeyId) -> Result<VersionedKey>
Rotate a key to a new version
Source§fn get_key_versions(&self, id: &KeyId) -> Result<Vec<VersionedKey>>
fn get_key_versions(&self, id: &KeyId) -> Result<Vec<VersionedKey>>
Get all verions of a key (sorted by version number)
Source§fn get_latest_key(&self, id: &KeyId) -> Result<VersionedKey>
fn get_latest_key(&self, id: &KeyId) -> Result<VersionedKey>
Get the latest active version of a key
Auto Trait Implementations§
impl Freeze for MemoryStore
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin 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