Skip to main content

KeeperTrait

Trait KeeperTrait 

Source
pub trait KeeperTrait: Send + Sync {
    // Required methods
    fn opened(&self) -> bool;
    fn name(&self) -> String;
    fn path(&self) -> Option<PathBuf>;
    fn temp(&self) -> bool;
    fn ri_key(&self, pre: &str, ri: u64) -> String;
}
Expand description

Trait for key pair storage and cryptographic key management

Required Methods§

Source

fn opened(&self) -> bool

Check if database is opened

Source

fn name(&self) -> String

Get name of database

Source

fn path(&self) -> Option<PathBuf>

Get database path

Source

fn temp(&self) -> bool

Check if database is temporary

Source

fn ri_key(&self, pre: &str, ri: u64) -> String

Create a key to access the pubs database with prefix and rotation index

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§