pub struct CryptParamsIntegrity {
Show 13 fields pub journal_size: u64, pub journal_watermark: c_uint, pub journal_commit_time: c_uint, pub interleave_sectors: u32, pub tag_size: u32, pub sector_size: u32, pub buffer_sectors: u32, pub integrity: String, pub integrity_key_size: u32, pub journal_integrity: String, pub journal_integrity_key: Vec<u8>, pub journal_crypt: String, pub journal_crypt_key: Vec<u8>,
}
Expand description

Parameters for integrity checking

Fields§

§journal_size: u64§journal_watermark: c_uint§journal_commit_time: c_uint§interleave_sectors: u32§tag_size: u32§sector_size: u32§buffer_sectors: u32§integrity: String§integrity_key_size: u32§journal_integrity: String§journal_integrity_key: Vec<u8>§journal_crypt: String§journal_crypt_key: Vec<u8>

Trait Implementations§

source§

impl<'a> TryFrom<&'a crypt_params_integrity> for CryptParamsIntegrity

§

type Error = LibcryptErr

The type returned in the event of a conversion error.
source§

fn try_from(v: &'a crypt_params_integrity) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryInto<CryptParamsIntegrityRef<'a>> for &'a CryptParamsIntegrity

§

type Error = LibcryptErr

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<CryptParamsIntegrityRef<'a>, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.