pub struct CryptParamsLuks2 {
pub pbkdf: Option<CryptPbkdfType>,
pub integrity: Option<String>,
pub integrity_params: Option<CryptParamsIntegrity>,
pub data_alignment: size_t,
pub data_device: Option<PathBuf>,
pub sector_size: u32,
pub label: Option<String>,
pub subsystem: Option<String>,
}Expand description
LUKS2-specific parameters
Fields§
§pbkdf: Option<CryptPbkdfType>§integrity: Option<String>§integrity_params: Option<CryptParamsIntegrity>§data_alignment: size_t§data_device: Option<PathBuf>§sector_size: u32§label: Option<String>§subsystem: Option<String>Trait Implementations§
Source§impl<'a> TryFrom<&'a crypt_params_luks2> for CryptParamsLuks2
impl<'a> TryFrom<&'a crypt_params_luks2> for CryptParamsLuks2
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<CryptParamsLuks2Ref<'a>> for &'a CryptParamsLuks2
impl<'a> TryInto<CryptParamsLuks2Ref<'a>> for &'a CryptParamsLuks2
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CryptParamsLuks2
impl RefUnwindSafe for CryptParamsLuks2
impl Send for CryptParamsLuks2
impl Sync for CryptParamsLuks2
impl Unpin for CryptParamsLuks2
impl UnwindSafe for CryptParamsLuks2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more