pub trait KekSource:
Send
+ Sync
+ 'static {
// Required methods
fn load_keyring(&self) -> BoxFuture<'_, Result<LoadedKeyring, CryptoError>>;
fn provision(
&self,
id: &KeyId,
) -> BoxFuture<'_, Result<DataKey, CryptoError>>;
fn destroy(&self, id: &KeyId) -> BoxFuture<'_, Result<(), CryptoError>>;
}Required Methods§
Sourcefn load_keyring(&self) -> BoxFuture<'_, Result<LoadedKeyring, CryptoError>>
fn load_keyring(&self) -> BoxFuture<'_, Result<LoadedKeyring, CryptoError>>
Unwrap and return every (key, all live versions) pair. Called once at boot; the result seeds the in-memory ring.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".