pub enum Argon2Preset {
HighSecurity,
Interactive,
DevFast,
}Expand description
Preset selector for convenience.
Variants§
HighSecurity
High security preset for production environments (64 MiB memory, 3 iterations).
Interactive
Interactive preset balanced for user-facing applications (32 MiB memory, 2 iterations).
DevFast
Fast preset for development and testing (4 MiB memory, 1 iteration).
Implementations§
Source§impl Argon2Preset
impl Argon2Preset
Sourcepub fn to_config(self) -> Argon2Config
pub fn to_config(self) -> Argon2Config
Convert this preset to an Argon2Config.
Trait Implementations§
Source§impl Clone for Argon2Preset
impl Clone for Argon2Preset
Source§fn clone(&self) -> Argon2Preset
fn clone(&self) -> Argon2Preset
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 Argon2Preset
impl Debug for Argon2Preset
impl Copy for Argon2Preset
Auto Trait Implementations§
impl Freeze for Argon2Preset
impl RefUnwindSafe for Argon2Preset
impl Send for Argon2Preset
impl Sync for Argon2Preset
impl Unpin for Argon2Preset
impl UnwindSafe for Argon2Preset
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more