[−][src]Struct cryptsetup_rs::api::CryptDeviceLuks2FormatBuilder
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]
self,
hash: &'a str,
time_ms: u32,
iterations: u32,
max_memory_kb: u32,
parallel_threads: u32
) -> Self
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]
self,
hash: &'a str,
time_ms: u32,
iterations: u32,
max_memory_kb: u32,
parallel_threads: u32
) -> Self
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
impl<'a> RefUnwindSafe for CryptDeviceLuks2FormatBuilder<'a>
impl<'a> !Send for CryptDeviceLuks2FormatBuilder<'a>
impl<'a> !Sync for CryptDeviceLuks2FormatBuilder<'a>
impl<'a> Unpin for CryptDeviceLuks2FormatBuilder<'a>
impl<'a> UnwindSafe for CryptDeviceLuks2FormatBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,