Skip to main content

KeyProvider

Trait KeyProvider 

Source
pub trait KeyProvider {
    // Required method
    fn key(&self, app_name: &str) -> Result<SecretKey, KeyError>;
}
Expand description

Retrieves or creates the encryption key for an application.

Required Methods§

Source

fn key(&self, app_name: &str) -> Result<SecretKey, KeyError>

Returns the key for app_name.

§Errors

Returns KeyError on I/O failure or invalid stored key data.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§