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) -> ArgonParams
pub fn default_for(system: &System, hashers: u32) -> ArgonParams
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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