pub struct PresenceOptions {
pub mode: PresenceMode,
pub cache_ttl_secs: u64,
pub reason: String,
}Expand description
Options controlling the user-presence prompt for SignerHandle::sign_with_presence.
The mode field determines whether a prompt fires; cache_ttl_secs controls
how long a successful authentication suppresses subsequent prompts (macOS only);
reason is the human-readable string shown in the biometric dialog.
Fields§
§mode: PresenceModeControls when the biometric/PIN prompt fires.
cache_ttl_secs: u64How long a successful authentication suppresses subsequent prompts.
Effective only on macOS (LAContext TTL); ignored on other platforms.
0 means prompt on every call.
reason: StringHuman-readable reason shown in the Touch ID / Windows Hello dialog.
Implementations§
Trait Implementations§
Source§impl Clone for PresenceOptions
impl Clone for PresenceOptions
Source§fn clone(&self) -> PresenceOptions
fn clone(&self) -> PresenceOptions
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 moreAuto Trait Implementations§
impl Freeze for PresenceOptions
impl RefUnwindSafe for PresenceOptions
impl Send for PresenceOptions
impl Sync for PresenceOptions
impl Unpin for PresenceOptions
impl UnsafeUnpin for PresenceOptions
impl UnwindSafe for PresenceOptions
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