pub struct Argon2PassParams {
pub m_cost: u32,
pub t_cost: u32,
pub p_cost: u32,
}Expand description
Argon2id parameters for one pass of the KDF chain.
Fields§
§m_cost: u32Memory usage in KiB (e.g. 131_072 = 128 MiB).
t_cost: u32Number of passes over memory (time cost).
p_cost: u32Degree of parallelism (lanes). Keep at 1 for single-threaded use.
Trait Implementations§
Source§impl Clone for Argon2PassParams
impl Clone for Argon2PassParams
Source§fn clone(&self) -> Argon2PassParams
fn clone(&self) -> Argon2PassParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Argon2PassParams
impl Debug for Argon2PassParams
Source§impl PartialEq for Argon2PassParams
impl PartialEq for Argon2PassParams
impl Copy for Argon2PassParams
impl Eq for Argon2PassParams
impl StructuralPartialEq for Argon2PassParams
Auto Trait Implementations§
impl Freeze for Argon2PassParams
impl RefUnwindSafe for Argon2PassParams
impl Send for Argon2PassParams
impl Sync for Argon2PassParams
impl Unpin for Argon2PassParams
impl UnsafeUnpin for Argon2PassParams
impl UnwindSafe for Argon2PassParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.