pub struct KeyringCredentialStore;Trait Implementations§
Source§impl Clone for KeyringCredentialStore
impl Clone for KeyringCredentialStore
impl Copy for KeyringCredentialStore
Source§impl CredentialStore for KeyringCredentialStore
impl CredentialStore for KeyringCredentialStore
fn check_available( &self, target: &CredentialTarget, ) -> Result<(), CredentialError>
fn load( &self, target: &CredentialTarget, ) -> Result<Option<CredentialRecord>, CredentialError>
Source§fn exists(&self, target: &CredentialTarget) -> Result<bool, CredentialError>
fn exists(&self, target: &CredentialTarget) -> Result<bool, CredentialError>
Checks whether any native-vault entry exists without decoding it.
fn create( &self, target: &CredentialTarget, record: &CredentialRecord, ) -> Result<CredentialCreateOutcome, CredentialError>
fn delete(&self, target: &CredentialTarget) -> Result<bool, CredentialError>
Source§fn delete_if_matches(
&self,
target: &CredentialTarget,
expected: &CredentialRecord,
) -> Result<CredentialDeleteOutcome, CredentialError>
fn delete_if_matches( &self, target: &CredentialTarget, expected: &CredentialRecord, ) -> Result<CredentialDeleteOutcome, CredentialError>
Deletes only the expected record. Implementations must serialize this
comparison and deletion with credential saves for the same account.
fn lock_mutation( &self, target: &CredentialTarget, ) -> Result<Box<dyn CredentialMutation + Send + '_>, CredentialError>
Source§impl Debug for KeyringCredentialStore
impl Debug for KeyringCredentialStore
Auto Trait Implementations§
impl Freeze for KeyringCredentialStore
impl RefUnwindSafe for KeyringCredentialStore
impl Send for KeyringCredentialStore
impl Sync for KeyringCredentialStore
impl Unpin for KeyringCredentialStore
impl UnsafeUnpin for KeyringCredentialStore
impl UnwindSafe for KeyringCredentialStore
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