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: CryptPbkdfFlags,
}
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: CryptPbkdfFlags
Trait Implementations
sourceimpl<'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.
sourcefn try_from(v: &'a crypt_pbkdf_type) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_pbkdf_type) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl 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.
sourcefn try_from(type_: crypt_pbkdf_type) -> Result<CryptPbkdfType, LibcryptErr>
fn try_from(type_: crypt_pbkdf_type) -> Result<CryptPbkdfType, LibcryptErr>
Performs the conversion.
sourceimpl<'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.
sourcefn try_into(self) -> Result<CryptPbkdfTypeRef<'a>, Self::Error>
fn try_into(self) -> Result<CryptPbkdfTypeRef<'a>, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CryptPbkdfType
impl Send for CryptPbkdfType
impl Sync for CryptPbkdfType
impl Unpin for CryptPbkdfType
impl UnwindSafe for CryptPbkdfType
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