[][src]Enum luks2::LuksArea

pub enum LuksArea {
    raw {
        encryption: String,
        key_size: u32,
        offset: u64,
        size: u64,
    },
}

Information on the allocated area in the binary keyslots area of a LuksKeyslot.

Only the raw type is currently used.

Variants

raw

Fields of raw

encryption: String

The area encryption algorithm, in dm-crypt notation (e. g. "aes-xts-plain64").

key_size: u32

The area encryption key size.

offset: u64

The offset from the device start to the beginning of the binary area in bytes.

size: u64

The area size in bytes.

Implementations

impl LuksArea[src]

pub fn encryption(&self) -> &String[src]

Returns the encryption algorithm of the area.

pub fn key_size(&self) -> u32[src]

Returns the key size of the area.

pub fn offset(&self) -> u64[src]

Returns the offset of the area.

pub fn size(&self) -> u64[src]

Returns the size of the area.

Trait Implementations

impl Debug for LuksArea[src]

impl<'de> Deserialize<'de> for LuksArea[src]

impl PartialEq<LuksArea> for LuksArea[src]

impl Serialize for LuksArea[src]

impl StructuralPartialEq for LuksArea[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.