Struct argon2::Params [−][src]
This is supported on crate feature
password-hash
only.Argon2 password hash parameters.
These are parameters which can be encoded into a PHC hash string.
Fields
m_cost: u32
Memory size, expressed in kilobytes, between 1 and (2^32)-1.
Value is an integer in decimal (1 to 10 digits).
t_cost: u32
Number of iterations, between 1 and (2^32)-1.
Value is an integer in decimal (1 to 10 digits).
p_cost: u32
Degree of parallelism, between 1 and 255.
Value is an integer in decimal (1 to 3 digits).
output_length: usize
Size of the output (in bytes)
Trait Implementations
impl Clone for Params
[src]
impl Copy for Params
[src]
impl Debug for Params
[src]
impl Default for Params
[src]
impl Eq for Params
[src]
impl PartialEq<Params> for Params
[src]
impl StructuralEq for Params
[src]
impl StructuralPartialEq for Params
[src]
impl TryFrom<&'_ ParamsString> for Params
[src]
type Error = HasherError
The type returned in the event of a conversion error.
fn try_from(input: &ParamsString) -> Result<Self, HasherError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Params
[src]
impl Send for Params
[src]
impl Sync for Params
[src]
impl Unpin for Params
[src]
impl UnwindSafe for Params
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,