pub struct Argon2Config {
pub memory_kib: u32,
pub time_cost: u32,
pub parallelism: u32,
}Expand description
Fields§
§memory_kib: u32Memory cost in KiB (default: 19456 = ~19 MiB)
time_cost: u32Time cost (iterations, default: 3)
parallelism: u32Parallelism (threads, default: 4)
Trait Implementations§
Source§impl Clone for Argon2Config
impl Clone for Argon2Config
Source§fn clone(&self) -> Argon2Config
fn clone(&self) -> Argon2Config
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 Argon2Config
impl Debug for Argon2Config
Auto Trait Implementations§
impl Freeze for Argon2Config
impl RefUnwindSafe for Argon2Config
impl Send for Argon2Config
impl Sync for Argon2Config
impl Unpin for Argon2Config
impl UnwindSafe for Argon2Config
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