Struct libcryptsetup_rs::CryptParamsVerity
source · [−]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: CryptVerityFlags,
}
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: CryptVerityFlags
Trait Implementations
sourceimpl<'a> TryFrom<&'a crypt_params_verity> for CryptParamsVerity
impl<'a> TryFrom<&'a crypt_params_verity> for CryptParamsVerity
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_from(v: &'a crypt_params_verity) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_params_verity) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'a> TryInto<CryptParamsVerityRef<'a>> for &'a CryptParamsVerity
impl<'a> TryInto<CryptParamsVerityRef<'a>> for &'a CryptParamsVerity
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_into(self) -> Result<CryptParamsVerityRef<'a>, Self::Error>
fn try_into(self) -> Result<CryptParamsVerityRef<'a>, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CryptParamsVerity
impl Send for CryptParamsVerity
impl Sync for CryptParamsVerity
impl Unpin for CryptParamsVerity
impl UnwindSafe for CryptParamsVerity
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