#[non_exhaustive]pub enum Kdf {
None,
Bcrypt {
salt: Vec<u8>,
rounds: u32,
},
}Expand description
Key Derivation Functions (KDF).
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.
Implementations§
Trait Implementations§
Source§impl Encode for Kdf
impl Encode for Kdf
Source§fn encoded_len(&self) -> Result<usize, Error>
fn encoded_len(&self) -> Result<usize, Error>
Get the length of this type encoded in bytes, prior to Base64 encoding. Read more
Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix. Read moreimpl Eq for Kdf
impl StructuralPartialEq for Kdf
Auto Trait Implementations§
impl Forget for Kdf
impl Freeze for Kdf
impl Move for Kdf
impl RefUnwindSafe for Kdf
impl Send for Kdfwhere
RawVecInner: Send,
impl Sync for Kdfwhere
RawVecInner: Sync,
impl Unpin for Kdf
impl UnsafeUnpin for Kdf
impl UnwindSafe for Kdfwhere
RawVecInner: UnwindSafe,
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