Skip to main content

MasterKeySource

Trait MasterKeySource 

Source
pub trait MasterKeySource: Send + Sync {
    // Required methods
    fn load_or_create(&self) -> Result<Zeroizing<Vec<u8>>>;
    fn name(&self) -> &'static str;
}
Expand description

Where the vault’s master key is kept.

Required Methods§

Source

fn load_or_create(&self) -> Result<Zeroizing<Vec<u8>>>

The key, created (random, 32 bytes) the first time.

Source

fn name(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§