#[non_exhaustive]pub enum KeyProtection {
Protected,
NotProtected,
UnknownProtection,
}Expand description
A key’s protection, if any.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Protected
The key is protected with a passphrase.
NotProtected
The key is not protected.
UnknownProtection
Unknown protection.
Trait Implementations§
Source§impl Clone for KeyProtection
impl Clone for KeyProtection
Source§fn clone(&self) -> KeyProtection
fn clone(&self) -> KeyProtection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyProtection
impl Debug for KeyProtection
Source§impl PartialEq for KeyProtection
impl PartialEq for KeyProtection
impl Eq for KeyProtection
impl StructuralPartialEq for KeyProtection
Auto Trait Implementations§
impl Freeze for KeyProtection
impl RefUnwindSafe for KeyProtection
impl Send for KeyProtection
impl Sync for KeyProtection
impl Unpin for KeyProtection
impl UnwindSafe for KeyProtection
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