[][src]Struct cryptsetup_rs::api::CryptDeviceFormatBuilder

pub struct CryptDeviceFormatBuilder { /* fields omitted */ }

Struct containing state for the format() builder

Methods

impl CryptDeviceFormatBuilder[src]

pub fn iteration_time(self, iteration_time_ms: u64) -> Self[src]

Set the iteration time for the PBKDF2 function. Note that this does not affect the MK iterations.

pub fn rng_type(self, rng_type: crypt_rng_type) -> Self[src]

Set the random number generator to use

pub fn luks1(
    self: CryptDeviceFormatBuilder,
    cipher: &str,
    cipher_mode: &str,
    hash: &str,
    mk_bits: usize,
    maybe_uuid: Option<&Uuid>
) -> Result<CryptDeviceHandle<Luks1Params>>
[src]

Formats a new block device as a LUKS1 crypt device with the specified parameters

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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