pub struct KeyringManager { /* private fields */ }Implementations§
Source§impl KeyringManager
impl KeyringManager
Sourcepub fn new_secure(application: &str) -> Result<Self>
pub fn new_secure(application: &str) -> Result<Self>
Open a secure keyring backed by the OS keychain/credential store.
Sourcepub fn new_insecure(
application: &str,
insecure_keyring_file: &Path,
) -> Result<Self>
pub fn new_insecure( application: &str, insecure_keyring_file: &Path, ) -> Result<Self>
Open an insecure keyring backed by an on-disk file (fallback when no OS backend is available).
Sourcepub fn with_keyring<F, T>(&self, service: &str, key: &str, f: F) -> Result<T>
pub fn with_keyring<F, T>(&self, service: &str, key: &str, f: F) -> Result<T>
Run a closure against the keyring entry for (service, key).
Auto Trait Implementations§
impl !Freeze for KeyringManager
impl RefUnwindSafe for KeyringManager
impl Send for KeyringManager
impl Sync for KeyringManager
impl Unpin for KeyringManager
impl UnsafeUnpin for KeyringManager
impl UnwindSafe for KeyringManager
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