[][src]Struct cryptsetup_rs::api::CryptDeviceLuks2FormatBuilder

pub struct CryptDeviceLuks2FormatBuilder<'a> { /* fields omitted */ }

Implementations

impl<'a> CryptDeviceLuks2FormatBuilder<'a>[src]

pub fn label(self, label: &'a str) -> Self[src]

Set device primary label

pub fn subsystem(self, subsystem: &'a str) -> Self[src]

Set device secondary label, 'subsystem'

pub fn data_device(self, p: &'a Path) -> Self[src]

Set path to data device (this will result in a split header)

pub fn pbkdf2(self, hash: &'a str, time_ms: u32, iterations: u32) -> Self[src]

Set PBKDF parameters for pbkdf2

pub fn argon2i(
    self,
    hash: &'a str,
    time_ms: u32,
    iterations: u32,
    max_memory_kb: u32,
    parallel_threads: u32
) -> Self
[src]

Set PBKDF parameters for argon2i

pub fn argon2id(
    self,
    hash: &'a str,
    time_ms: u32,
    iterations: u32,
    max_memory_kb: u32,
    parallel_threads: u32
) -> Self
[src]

Set PBKDF parameters for argon2id

pub fn start(self) -> Result<CryptDeviceHandle<Luks2Params>>[src]

Format a new block device as a LUKS2 crypt device with specified parameters

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> From<T> for T[src]

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,