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
sourceimpl<'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.
sourcefn try_from(v: &'a crypt_params_luks2) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_params_luks2) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'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.
sourcefn try_into(self) -> Result<CryptParamsLuks2Ref<'a>, Self::Error>
fn try_into(self) -> Result<CryptParamsLuks2Ref<'a>, Self::Error>
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more