Struct libcryptsetup_rs::CryptParamsLuks2
source · 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
§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
§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
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