pub enum Luks2KeyslotPriority {
Ignore = 0,
Normal = 1,
High = 2,
}Expand description
The priority of a LUKS2 keyslot.
Variants§
Ignore = 0
The keyslot should be ignored except if explicitly stated
Normal = 1
Normal priority.
High = 2
High priority.
Trait Implementations§
Source§impl Clone for Luks2KeyslotPriority
impl Clone for Luks2KeyslotPriority
Source§fn clone(&self) -> Luks2KeyslotPriority
fn clone(&self) -> Luks2KeyslotPriority
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 Luks2KeyslotPriority
impl Debug for Luks2KeyslotPriority
Source§impl<'de> Deserialize<'de> for Luks2KeyslotPriority
impl<'de> Deserialize<'de> for Luks2KeyslotPriority
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Luks2KeyslotPriority> for i32
impl From<Luks2KeyslotPriority> for i32
Source§fn from(val: Luks2KeyslotPriority) -> Self
fn from(val: Luks2KeyslotPriority) -> Self
Converts to this type from the input type.
Source§impl Ord for Luks2KeyslotPriority
impl Ord for Luks2KeyslotPriority
Source§fn cmp(&self, other: &Luks2KeyslotPriority) -> Ordering
fn cmp(&self, other: &Luks2KeyslotPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Luks2KeyslotPriority
impl PartialEq for Luks2KeyslotPriority
Source§impl PartialOrd for Luks2KeyslotPriority
impl PartialOrd for Luks2KeyslotPriority
Source§impl Serialize for Luks2KeyslotPriority
impl Serialize for Luks2KeyslotPriority
Source§impl TryFrom<i32> for Luks2KeyslotPriority
impl TryFrom<i32> for Luks2KeyslotPriority
impl Copy for Luks2KeyslotPriority
impl Eq for Luks2KeyslotPriority
impl StructuralPartialEq for Luks2KeyslotPriority
Auto Trait Implementations§
impl Freeze for Luks2KeyslotPriority
impl RefUnwindSafe for Luks2KeyslotPriority
impl Send for Luks2KeyslotPriority
impl Sync for Luks2KeyslotPriority
impl Unpin for Luks2KeyslotPriority
impl UnsafeUnpin for Luks2KeyslotPriority
impl UnwindSafe for Luks2KeyslotPriority
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