[][src]Struct luks2::LuksConfig

pub struct LuksConfig {
    pub json_size: u64,
    pub keyslots_size: u64,
    pub flags: Option<Vec<String>>,
    pub requirements: Option<Vec<String>>,
}

Global attributes for the LUKS device.

Fields

json_size: u64

The JSON area size in bytes. Must match the binary header.

keyslots_size: u64

The binary keyslot area size in bytes. Must be aligned to 4096 bytes.

flags: Option<Vec<String>>

An optional list of persistent flags for the device.

requirements: Option<Vec<String>>

An optional list of additional required featers for the LUKS device.

Trait Implementations

impl Debug for LuksConfig[src]

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

impl PartialEq<LuksConfig> for LuksConfig[src]

impl Serialize for LuksConfig[src]

impl StructuralPartialEq for LuksConfig[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.