pub struct KeychainSettings(/* private fields */);
Expand description
Settings associated with a SecKeychain
.
Implementations§
Source§impl KeychainSettings
impl KeychainSettings
Sourcepub fn set_lock_on_sleep(&mut self, lock_on_sleep: bool)
pub fn set_lock_on_sleep(&mut self, lock_on_sleep: bool)
If set, the keychain will automatically lock when the computer sleeps.
Defaults to false
.
Sourcepub fn set_lock_interval(&mut self, lock_interval: Option<u32>)
pub fn set_lock_interval(&mut self, lock_interval: Option<u32>)
Sets the interval of time in seconds after which the keychain is automatically locked.
Defaults to None
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeychainSettings
impl RefUnwindSafe for KeychainSettings
impl Send for KeychainSettings
impl Sync for KeychainSettings
impl Unpin for KeychainSettings
impl UnwindSafe for KeychainSettings
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