Skip to main content

Argon2ParamsSetters

Trait Argon2ParamsSetters 

Source
pub trait Argon2ParamsSetters: Holds<Argon2Params> + Sized {
    // Required methods
    fn memory_kib(self, value: u32) -> Self;
    fn iterations(self, value: u32) -> Self;
    fn parallelism(self, value: u32) -> Self;
}
Expand description

The typed setters of Argon2Params, for any builder that holds its settings.

Required Methods§

Source

fn memory_kib(self, value: u32) -> Self

Memory in KiB.

Source

fn iterations(self, value: u32) -> Self

Passes over the memory.

Source

fn parallelism(self, value: u32) -> Self

Lanes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> Argon2ParamsSetters for __B
where __B: Holds<Argon2Params>,