Struct security_framework::os::macos::keychain::KeychainSettings
source · pub struct KeychainSettings(_);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.