Struct libcryptsetup_rs::CryptPbkdfType
source · pub struct CryptPbkdfType {
pub type_: CryptKdf,
pub hash: String,
pub time_ms: u32,
pub iterations: u32,
pub max_memory_kb: u32,
pub parallel_threads: u32,
pub flags: CryptPbkdf,
}
Expand description
Rust representation of crypt_pbkdf_type
Fields§
§type_: CryptKdf
§hash: String
§time_ms: u32
§iterations: u32
§max_memory_kb: u32
§parallel_threads: u32
§flags: CryptPbkdf
Trait Implementations§
source§impl<'a> TryFrom<&'a crypt_pbkdf_type> for CryptPbkdfType
impl<'a> TryFrom<&'a crypt_pbkdf_type> for CryptPbkdfType
§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
source§impl TryFrom<crypt_pbkdf_type> for CryptPbkdfType
impl TryFrom<crypt_pbkdf_type> for CryptPbkdfType
§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
source§fn try_from(type_: crypt_pbkdf_type) -> Result<CryptPbkdfType, LibcryptErr>
fn try_from(type_: crypt_pbkdf_type) -> Result<CryptPbkdfType, LibcryptErr>
Performs the conversion.
source§impl<'a> TryInto<CryptPbkdfTypeRef<'a>> for &'a CryptPbkdfType
impl<'a> TryInto<CryptPbkdfTypeRef<'a>> for &'a CryptPbkdfType
§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CryptPbkdfType
impl RefUnwindSafe for CryptPbkdfType
impl Send for CryptPbkdfType
impl Sync for CryptPbkdfType
impl Unpin for CryptPbkdfType
impl UnwindSafe for CryptPbkdfType
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