#[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 ==.