[−][src]Struct cryptsetup_rs::api::CryptDeviceFormatBuilder
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]
self: CryptDeviceFormatBuilder,
cipher: &str,
cipher_mode: &str,
hash: &str,
mk_bits: usize,
maybe_uuid: Option<&Uuid>
) -> Result<CryptDeviceHandle<Luks1Params>>
Formats a new block device as a LUKS1 crypt device with the specified parameters
Auto Trait Implementations
impl !Send for CryptDeviceFormatBuilder
impl !Sync for CryptDeviceFormatBuilder
impl Unpin for CryptDeviceFormatBuilder
impl UnwindSafe for CryptDeviceFormatBuilder
impl RefUnwindSafe for CryptDeviceFormatBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,