#[repr(C, u8)]pub enum KeyringRequest {
Store {
key: AzString,
secret: AzString,
require_biometry: bool,
},
Get {
key: AzString,
},
Delete {
key: AzString,
},
}Expand description
A keyring operation queued by a callback
(CallbackInfo::keyring_store / keyring_get / keyring_delete) and
dispatched to the platform backend by the layout pass.
secret is an AzString — the common case is a password / token;
binary blobs are base64-encoded by the caller. key is the lookup
name, scoped to the app’s keyring service.
Variants§
Store
Write secret under key, overwriting any existing value. When
require_biometry is set the item is stored access-controlled so a
later Get triggers the OS biometric prompt (Keychain
biometryCurrentSet / KeyStore setUserAuthenticationRequired).
Get
Read the secret stored under key. For a biometry-bound item the
OS shows its auth prompt first; the result arrives asynchronously.
Delete
Remove the item stored under key (no-op if absent).
Trait Implementations§
Source§impl Clone for KeyringRequest
impl Clone for KeyringRequest
Source§fn clone(&self) -> KeyringRequest
fn clone(&self) -> KeyringRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KeyringRequest
impl Debug for KeyringRequest
Source§impl PartialEq for KeyringRequest
impl PartialEq for KeyringRequest
Source§fn eq(&self, other: &KeyringRequest) -> bool
fn eq(&self, other: &KeyringRequest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyringRequest
Auto Trait Implementations§
impl Freeze for KeyringRequest
impl RefUnwindSafe for KeyringRequest
impl Send for KeyringRequest
impl Sync for KeyringRequest
impl Unpin for KeyringRequest
impl UnsafeUnpin for KeyringRequest
impl UnwindSafe for KeyringRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more