Struct libcryptsetup_rs::CryptParamsLuks1
source · [−]pub struct CryptParamsLuks1 {
pub hash: String,
pub data_alignment: usize,
pub data_device: Option<PathBuf>,
}
Expand description
A struct representing LUKS1 specific parameters.
Fields
hash: String
data_alignment: usize
data_device: Option<PathBuf>
Trait Implementations
sourceimpl<'a> TryFrom<&'a crypt_params_luks1> for CryptParamsLuks1
impl<'a> TryFrom<&'a crypt_params_luks1> for CryptParamsLuks1
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_from(v: &'a crypt_params_luks1) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_params_luks1) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'a> TryInto<CryptParamsLuks1Ref<'a>> for &'a CryptParamsLuks1
impl<'a> TryInto<CryptParamsLuks1Ref<'a>> for &'a CryptParamsLuks1
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_into(self) -> Result<CryptParamsLuks1Ref<'a>, Self::Error>
fn try_into(self) -> Result<CryptParamsLuks1Ref<'a>, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CryptParamsLuks1
impl Send for CryptParamsLuks1
impl Sync for CryptParamsLuks1
impl Unpin for CryptParamsLuks1
impl UnwindSafe for CryptParamsLuks1
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