pub struct Keychain { /* private fields */ }Expand description
Passwords in a credential store, by account (user@host).
Implementations§
Source§impl Keychain
impl Keychain
Sourcepub fn with_store(store: Arc<CredentialStore>) -> Self
pub fn with_store(store: Arc<CredentialStore>) -> Self
Passwords in the given store, like a mock store in tests.
Sourcepub fn get(&self, account: &str) -> Result<Option<SecretString>, Error>
pub fn get(&self, account: &str) -> Result<Option<SecretString>, Error>
The password of the account, if one is stored.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Keychain
impl !UnwindSafe for Keychain
impl Forget for Keychain
impl Freeze for Keychain
impl Move for Keychain
impl Send for Keychain
impl Sync for Keychain
impl Unpin for Keychain
impl UnsafeUnpin for Keychain
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