pub enum ProtectionMode {
AccessibleWhenPasscodeSetThisDeviceOnly,
AccessibleWhenUnlockedThisDeviceOnly,
AccessibleWhenUnlocked,
AccessibleAfterFirstUnlockThisDeviceOnly,
AccessibleAfterFirstUnlock,
}
Expand description
Specify when an item is available.
Variants§
AccessibleWhenPasscodeSetThisDeviceOnly
The data in the keychain can only be accessed when the device is unlocked. Only available if a passcode is set on the device.
AccessibleWhenUnlockedThisDeviceOnly
The data in the keychain item can be accessed only while the device is unlocked by the user.
AccessibleWhenUnlocked
The data in the keychain item can be accessed only while the device is unlocked by the user.
AccessibleAfterFirstUnlockThisDeviceOnly
The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.
AccessibleAfterFirstUnlock
The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user.
Auto Trait Implementations§
impl Freeze for ProtectionMode
impl RefUnwindSafe for ProtectionMode
impl Send for ProtectionMode
impl Sync for ProtectionMode
impl Unpin for ProtectionMode
impl UnwindSafe for ProtectionMode
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