pub trait KeyRing: Send + Sync {
// Required methods
fn get_secret<S: AsRef<str>>(&mut self, id: S) -> Result<KeyRingSecret>;
fn set_secret<S: AsRef<str>, B: AsRef<[u8]>>(
&mut self,
id: S,
secret: B
) -> Result<()>;
fn delete_secret<S: AsRef<str>>(&mut self, id: S) -> Result<()>;
}
Expand description
A trait for all key rings
Required Methods§
fn get_secret<S: AsRef<str>>(&mut self, id: S) -> Result<KeyRingSecret>
fn set_secret<S: AsRef<str>, B: AsRef<[u8]>>( &mut self, id: S, secret: B ) -> Result<()>
fn delete_secret<S: AsRef<str>>(&mut self, id: S) -> Result<()>
Object Safety§
This trait is not object safe.