pub enum SecurityLevel {
Interactive,
Offline,
}Expand description
Argon2id security level — selects memory, iteration, and parallelism constants.
Variants§
Interactive
Password verification at login time (~300–500 ms, OWASP T3, 64 MiB).
Offline
Long-term key derivation from low-entropy passwords (~5–10 s, 1 GiB).
Auto Trait Implementations§
impl Freeze for SecurityLevel
impl RefUnwindSafe for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Unpin for SecurityLevel
impl UnsafeUnpin for SecurityLevel
impl UnwindSafe for SecurityLevel
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