pub enum Luks2HashAlg {
Sha256,
Sha512,
}Expand description
Supported hash algorithms for LUKS2.
These algorithms are used for calculating digests, anti-forensic (AF) stripes, and the header checksum.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Luks2HashAlg
impl Clone for Luks2HashAlg
Source§fn clone(&self) -> Luks2HashAlg
fn clone(&self) -> Luks2HashAlg
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 Luks2HashAlg
impl Debug for Luks2HashAlg
Source§impl<'de> Deserialize<'de> for Luks2HashAlg
impl<'de> Deserialize<'de> for Luks2HashAlg
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 Display for Luks2HashAlg
impl Display for Luks2HashAlg
Source§impl FromStr for Luks2HashAlg
impl FromStr for Luks2HashAlg
Source§impl PartialEq for Luks2HashAlg
impl PartialEq for Luks2HashAlg
Source§impl Serialize for Luks2HashAlg
impl Serialize for Luks2HashAlg
impl Copy for Luks2HashAlg
impl Eq for Luks2HashAlg
impl StructuralPartialEq for Luks2HashAlg
Auto Trait Implementations§
impl Freeze for Luks2HashAlg
impl RefUnwindSafe for Luks2HashAlg
impl Send for Luks2HashAlg
impl Sync for Luks2HashAlg
impl Unpin for Luks2HashAlg
impl UnsafeUnpin for Luks2HashAlg
impl UnwindSafe for Luks2HashAlg
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