pub struct PasswordKdfParams {
pub memory_cost_kib: u32,
pub time_cost: u32,
pub parallelism: u32,
}Fields§
§memory_cost_kib: u32§time_cost: u32§parallelism: u32Implementations§
Source§impl PasswordKdfParams
impl PasswordKdfParams
pub fn interactive() -> PasswordKdfParams
Trait Implementations§
Source§impl Clone for PasswordKdfParams
impl Clone for PasswordKdfParams
Source§fn clone(&self) -> PasswordKdfParams
fn clone(&self) -> PasswordKdfParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PasswordKdfParams
impl Debug for PasswordKdfParams
Source§impl<'de> Deserialize<'de> for PasswordKdfParams
impl<'de> Deserialize<'de> for PasswordKdfParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasswordKdfParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasswordKdfParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PasswordKdfParams
impl PartialEq for PasswordKdfParams
Source§fn eq(&self, other: &PasswordKdfParams) -> bool
fn eq(&self, other: &PasswordKdfParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PasswordKdfParams
impl Serialize for PasswordKdfParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PasswordKdfParams
impl Eq for PasswordKdfParams
impl StructuralPartialEq for PasswordKdfParams
Auto Trait Implementations§
impl Freeze for PasswordKdfParams
impl RefUnwindSafe for PasswordKdfParams
impl Send for PasswordKdfParams
impl Sync for PasswordKdfParams
impl Unpin for PasswordKdfParams
impl UnsafeUnpin for PasswordKdfParams
impl UnwindSafe for PasswordKdfParams
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