pub struct KeyDerivationReport {
pub algorithm: String,
pub algorithm_version: String,
pub memory_cost_kib: u32,
pub time_cost_iterations: u32,
pub parallelism: u32,
pub key_size_bytes: u8,
pub duration: Duration,
}Fields§
§algorithm: String§algorithm_version: String§memory_cost_kib: u32§time_cost_iterations: u32§parallelism: u32§key_size_bytes: u8§duration: DurationImplementations§
Source§impl KeyDerivationReport
impl KeyDerivationReport
pub fn new( algorithm: String, algorithm_version: String, params: &KeyDerivationParams, duration: Duration, ) -> KeyDerivationReport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyDerivationReport
impl RefUnwindSafe for KeyDerivationReport
impl Send for KeyDerivationReport
impl Sync for KeyDerivationReport
impl Unpin for KeyDerivationReport
impl UnwindSafe for KeyDerivationReport
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