#[non_exhaustive]
pub enum KdfAlg {
None,
Bcrypt,
}
Expand description
Key Derivation Function (KDF) algorithms.
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.
None
None.
Bcrypt
bcrypt-pbkdf.
Implementations
Trait Implementations
sourceimpl Ord for KdfAlg
impl Ord for KdfAlg
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<KdfAlg> for KdfAlg
impl PartialOrd<KdfAlg> for KdfAlg
sourcefn partial_cmp(&self, other: &KdfAlg) -> Option<Ordering>
fn partial_cmp(&self, other: &KdfAlg) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KdfAlg
impl Eq for KdfAlg
impl StructuralEq for KdfAlg
impl StructuralPartialEq for KdfAlg
Auto Trait Implementations
impl RefUnwindSafe for KdfAlg
impl Send for KdfAlg
impl Sync for KdfAlg
impl Unpin for KdfAlg
impl UnwindSafe for KdfAlg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Encode for Twhere
T: Label,
impl<T> Encode for Twhere
T: Label,
sourcefn encoded_len(&self) -> Result<usize, <T as Label>::Error>
fn encoded_len(&self) -> Result<usize, <T as Label>::Error>
Get the length of this type encoded in bytes, prior to Base64 encoding.
sourcefn encode(&self, writer: &mut impl Writer) -> Result<(), <T as Label>::Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), <T as Label>::Error>
Encode this value using the provided
Writer
.sourcefn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix. Read more