Enum bonsaidb_local::config::ArgonParams
source · #[non_exhaustive]pub enum ArgonParams {
Params(ParamsBuilder),
Timed(TimedArgonParams),
}
Expand description
Argon2id base parameters.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Params(ParamsBuilder)
Specific argon2 parameters.
Timed(TimedArgonParams)
Automatic configuration based on execution time. This is measured during
the first set_password
operation.
Implementations§
source§impl ArgonParams
impl ArgonParams
sourcepub fn default_for(system: &System, hashers: u32) -> Self
pub fn default_for(system: &System, hashers: u32) -> Self
Returns the default configuration based on the system information and
number of hashers. See TimedArgonParams
for more details.
Trait Implementations§
source§impl Clone for ArgonParams
impl Clone for ArgonParams
source§fn clone(&self) -> ArgonParams
fn clone(&self) -> ArgonParams
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ArgonParams
impl Send for ArgonParams
impl Sync for ArgonParams
impl Unpin for ArgonParams
impl UnwindSafe for ArgonParams
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