Struct security_framework::os::macos::keychain::KeychainSettings
source · [−]pub struct KeychainSettings(_);
Expand description
Settings associated with a SecKeychain
.
Implementations
sourceimpl 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 RefUnwindSafe for KeychainSettings
impl Send for KeychainSettings
impl Sync for KeychainSettings
impl Unpin for KeychainSettings
impl UnwindSafe for KeychainSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more