pub struct CryptParamsVerity {Show 13 fields
pub hash_name: String,
pub data_device: PathBuf,
pub hash_device: PathBuf,
pub fec_device: PathBuf,
pub salt: Vec<u8>,
pub hash_type: u32,
pub data_block_size: u32,
pub hash_block_size: u32,
pub data_size: u64,
pub hash_area_offset: u64,
pub fec_area_offset: u64,
pub fec_roots: u32,
pub flags: CryptVerity,
}
Expand description
Parameters specific to Verity
Fields§
§hash_name: String
§data_device: PathBuf
§hash_device: PathBuf
§fec_device: PathBuf
§salt: Vec<u8>
§hash_type: u32
§data_block_size: u32
§hash_block_size: u32
§data_size: u64
§hash_area_offset: u64
§fec_area_offset: u64
§fec_roots: u32
§flags: CryptVerity
Trait Implementations§
Source§impl<'a> TryFrom<&'a crypt_params_verity> for CryptParamsVerity
impl<'a> TryFrom<&'a crypt_params_verity> for CryptParamsVerity
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<CryptParamsVerityRef<'a>> for &'a CryptParamsVerity
impl<'a> TryInto<CryptParamsVerityRef<'a>> for &'a CryptParamsVerity
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CryptParamsVerity
impl RefUnwindSafe for CryptParamsVerity
impl Send for CryptParamsVerity
impl Sync for CryptParamsVerity
impl Unpin for CryptParamsVerity
impl UnwindSafe for CryptParamsVerity
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