pub struct OsKeyring { /* private fields */ }Expand description
Real OS keyring backend ([host]). Stores the master key as a binary secret
under a fixed service/user. Compiled on every platform behind the trait, but
validated on real hardware in a later layer — unit tests use
MockKeyring.
Implementations§
Trait Implementations§
Source§impl Keyring for OsKeyring
impl Keyring for OsKeyring
Source§fn get_master_key(&self) -> Result<MasterKey, CoreError>
fn get_master_key(&self) -> Result<MasterKey, CoreError>
Fetch the master key, materializing it (e.g. reading the OS keyring or
deriving from a passphrase).
Source§fn set_master_key(&self, key: &MasterKey) -> Result<(), CoreError>
fn set_master_key(&self, key: &MasterKey) -> Result<(), CoreError>
Persist the master key (e.g. write it to the OS keyring). Backends that
derive the key (see
Argon2Keyring) have nothing to store and return
an error.Auto Trait Implementations§
impl Freeze for OsKeyring
impl RefUnwindSafe for OsKeyring
impl Send for OsKeyring
impl Sync for OsKeyring
impl Unpin for OsKeyring
impl UnsafeUnpin for OsKeyring
impl UnwindSafe for OsKeyring
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more