pub struct KeyringManager {
pub last_result: Option<KeyringResult>,
}Expand description
Cross-platform keyring state. One per App — the OS keyring is a
per-process (per-app-identity) store, not per-window.
Fields§
§last_result: Option<KeyringResult>Outcome of the most recent keyring op, or None until the first
completes. Read by callbacks via CallbackInfo::get_keyring_result().
Implementations§
Source§impl KeyringManager
impl KeyringManager
pub fn new() -> Self
Sourcepub fn last_result(&self) -> Option<&KeyringResult>
pub fn last_result(&self) -> Option<&KeyringResult>
Most recent keyring outcome, or None until the first op resolves.
Sourcepub fn set_last_result(&mut self, result: KeyringResult) -> bool
pub fn set_last_result(&mut self, result: KeyringResult) -> bool
Apply the outcome the backend delivered. Returns true if it
differs from the previous one (so the window can be marked dirty to
re-render the revealed / stored state).
Trait Implementations§
Source§impl Clone for KeyringManager
impl Clone for KeyringManager
Source§fn clone(&self) -> KeyringManager
fn clone(&self) -> KeyringManager
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 KeyringManager
impl Debug for KeyringManager
Source§impl Default for KeyringManager
impl Default for KeyringManager
Source§fn default() -> KeyringManager
fn default() -> KeyringManager
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeyringManager
impl PartialEq for KeyringManager
Source§fn eq(&self, other: &KeyringManager) -> bool
fn eq(&self, other: &KeyringManager) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyringManager
Auto Trait Implementations§
impl Freeze for KeyringManager
impl RefUnwindSafe for KeyringManager
impl Send for KeyringManager
impl Sync for KeyringManager
impl Unpin for KeyringManager
impl UnsafeUnpin for KeyringManager
impl UnwindSafe for KeyringManager
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
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>
Converts
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>
Converts
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