#[non_exhaustive]pub enum InvalidKdfParams {
Parallelism(u32),
MemoryCost(u32),
TimeCost(u32),
}Expand description
Which KDF parameter from an untrusted header failed its structural bound check. Carries the raw value so callers can decide whether to re-try with looser limits.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parallelism(u32)
lanes is zero or exceeds the library’s maximum.
MemoryCost(u32)
mem_cost is below the per-lane minimum or exceeds the library’s
maximum.
TimeCost(u32)
time_cost is zero or exceeds the library’s maximum.
Trait Implementations§
Source§impl Clone for InvalidKdfParams
impl Clone for InvalidKdfParams
Source§fn clone(&self) -> InvalidKdfParams
fn clone(&self) -> InvalidKdfParams
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 moreimpl Copy for InvalidKdfParams
Source§impl Debug for InvalidKdfParams
impl Debug for InvalidKdfParams
Source§impl Display for InvalidKdfParams
impl Display for InvalidKdfParams
impl Eq for InvalidKdfParams
Source§impl PartialEq for InvalidKdfParams
impl PartialEq for InvalidKdfParams
Source§fn eq(&self, other: &InvalidKdfParams) -> bool
fn eq(&self, other: &InvalidKdfParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidKdfParams
Auto Trait Implementations§
impl Freeze for InvalidKdfParams
impl RefUnwindSafe for InvalidKdfParams
impl Send for InvalidKdfParams
impl Sync for InvalidKdfParams
impl Unpin for InvalidKdfParams
impl UnsafeUnpin for InvalidKdfParams
impl UnwindSafe for InvalidKdfParams
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