pub struct HashConfig<const PEPPER_LEN: usize = DEFAULT_PEPPER_LEN> {
pub pepper: [u8; PEPPER_LEN],
pub memory_kib: u32,
pub time_cost: u32,
pub lanes: u32,
}Expand description
Serde helpers: hex array
Fields§
§pepper: [u8; PEPPER_LEN]§memory_kib: u32§time_cost: u32§lanes: u32Implementations§
Trait Implementations§
Source§impl<const PEPPER_LEN: usize> Clone for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> Clone for HashConfig<PEPPER_LEN>
Source§fn clone(&self) -> HashConfig<PEPPER_LEN>
fn clone(&self) -> HashConfig<PEPPER_LEN>
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<'de, const PEPPER_LEN: usize> Deserialize<'de> for HashConfig<PEPPER_LEN>
impl<'de, const PEPPER_LEN: usize> Deserialize<'de> for HashConfig<PEPPER_LEN>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<const PEPPER_LEN: usize> Freeze for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> RefUnwindSafe for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> Send for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> Sync for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> Unpin for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> UnsafeUnpin for HashConfig<PEPPER_LEN>
impl<const PEPPER_LEN: usize> UnwindSafe for HashConfig<PEPPER_LEN>
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