#[repr(C, u8)]pub enum KeyringResult {
Stored,
Retrieved(AzString),
Deleted,
NotFound,
Denied,
Unavailable,
Error,
}Expand description
The outcome of a KeyringRequest, delivered to the result channel
and read by callbacks via CallbackInfo::get_keyring_result().
Variants§
Stored
A Store succeeded.
Retrieved(AzString)
A Get returned the secret.
Deleted
A Delete succeeded (the key is now absent).
NotFound
The requested key was not present in the keyring.
Denied
A biometry-bound read was refused — the user failed or cancelled the OS auth prompt.
No keyring backend is available on this platform / it isn’t configured (e.g. Linux without a running secret service).
Error
A platform error occurred (locked keychain, I/O, unmapped code).
Implementations§
Trait Implementations§
Source§impl Clone for KeyringResult
impl Clone for KeyringResult
Source§fn clone(&self) -> KeyringResult
fn clone(&self) -> KeyringResult
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 moreSource§impl Debug for KeyringResult
impl Debug for KeyringResult
Source§impl PartialEq for KeyringResult
impl PartialEq for KeyringResult
Source§fn eq(&self, other: &KeyringResult) -> bool
fn eq(&self, other: &KeyringResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyringResult
Auto Trait Implementations§
impl Freeze for KeyringResult
impl RefUnwindSafe for KeyringResult
impl Send for KeyringResult
impl Sync for KeyringResult
impl Unpin for KeyringResult
impl UnsafeUnpin for KeyringResult
impl UnwindSafe for KeyringResult
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