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§
Source§impl<'a> TryFrom<&'a crypt_params_luks1> for CryptParamsLuks1
impl<'a> TryFrom<&'a crypt_params_luks1> for CryptParamsLuks1
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<CryptParamsLuks1Ref<'a>> for &'a CryptParamsLuks1
impl<'a> TryInto<CryptParamsLuks1Ref<'a>> for &'a CryptParamsLuks1
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CryptParamsLuks1
impl RefUnwindSafe for CryptParamsLuks1
impl Send for CryptParamsLuks1
impl Sync for CryptParamsLuks1
impl Unpin for CryptParamsLuks1
impl UnwindSafe for CryptParamsLuks1
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