Trait cryptex::DynKeyRing

source ·
pub trait DynKeyRing: Send + Sync {
    // Required methods
    fn get_secret(&mut self, id: &str) -> Result<KeyRingSecret>;
    fn set_secret(&mut self, id: &str, secret: &[u8]) -> Result<()>;
    fn delete_secret(&mut self, id: &str) -> Result<()>;
}
Expand description

Modification of KeyRing trait suitable for trait Objects. Implementers should use this trait and KeyRing will be implemented automatically

Required Methods§

source

fn get_secret(&mut self, id: &str) -> Result<KeyRingSecret>

source

fn set_secret(&mut self, id: &str, secret: &[u8]) -> Result<()>

source

fn delete_secret(&mut self, id: &str) -> Result<()>

Implementors§