Struct security_framework::os::macos::keychain::KeychainSettings
source · 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