pub struct KeyringCredentialStore;Trait Implementations§
Source§impl Clone for KeyringCredentialStore
impl Clone for KeyringCredentialStore
Source§fn clone(&self) -> KeyringCredentialStore
fn clone(&self) -> KeyringCredentialStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§impl Default for KeyringCredentialStore
impl Default for KeyringCredentialStore
Source§fn default() -> KeyringCredentialStore
fn default() -> KeyringCredentialStore
Returns the “default value” for a type. Read more
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