pub struct MeshKdfConfig {
pub m_cost_kib: u32,
pub t_cost: u32,
pub p_cost: u32,
}Expand description
Argon2id KDF parameters used when stretching the mesh passphrase. The derivation runs once at daemon startup and the result is cached, so values can be conservative without affecting per-handshake latency.
Fields§
§m_cost_kib: u32Memory cost in KiB. Default 65536 (64 MiB).
t_cost: u32Number of iterations. Default 3.
p_cost: u32Parallelism. Default 1.
Trait Implementations§
Source§impl Clone for MeshKdfConfig
impl Clone for MeshKdfConfig
Source§fn clone(&self) -> MeshKdfConfig
fn clone(&self) -> MeshKdfConfig
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 MeshKdfConfig
impl Debug for MeshKdfConfig
Source§impl Default for MeshKdfConfig
impl Default for MeshKdfConfig
Source§impl<'de> Deserialize<'de> for MeshKdfConfig
impl<'de> Deserialize<'de> for MeshKdfConfig
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
Source§impl PartialEq for MeshKdfConfig
impl PartialEq for MeshKdfConfig
Source§fn eq(&self, other: &MeshKdfConfig) -> bool
fn eq(&self, other: &MeshKdfConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MeshKdfConfig
impl Serialize for MeshKdfConfig
impl Copy for MeshKdfConfig
impl Eq for MeshKdfConfig
impl StructuralPartialEq for MeshKdfConfig
Auto Trait Implementations§
impl Freeze for MeshKdfConfig
impl RefUnwindSafe for MeshKdfConfig
impl Send for MeshKdfConfig
impl Sync for MeshKdfConfig
impl Unpin for MeshKdfConfig
impl UnsafeUnpin for MeshKdfConfig
impl UnwindSafe for MeshKdfConfig
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