pub trait KeyStore {
// Required methods
fn get(&self, collection: &str, epoch: u32) -> Option<Key>;
fn put(&self, collection: &str, epoch: u32, key: &Key) -> bool;
fn epochs(&self, collection: &str) -> Vec<u32>;
fn forget(&self, collection: &str, epoch: u32);
}Expand description
Where a machine keeps the keys of the collections it is a member of.
Required Methods§
fn get(&self, collection: &str, epoch: u32) -> Option<Key>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".