Enum luks2::LuksArea[][src]

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

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

Returns the encryption algorithm of the area.

Returns the key size of the area.

Returns the offset of the area.

Returns the size of the area.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.