pub enum HashFunction {
SHA256,
SHA384,
SHA512,
}Expand description
The hash functions that this library supports.
Currently, these hash functions dictate the HMAC function that PBKDF2 will use.
Variants§
Implementations§
Source§impl HashFunction
impl HashFunction
Sourcepub fn from_proto(proto_hash_fn: HashFunction) -> Result<Self, Error>
pub fn from_proto(proto_hash_fn: HashFunction) -> Result<Self, Error>
Create a hash function from the respective protobuf-generated enum.
This method may return an error, if the protobuf-generated enum is invalid.
Sourcepub fn to_proto(&self) -> HashFunction
pub fn to_proto(&self) -> HashFunction
Convert a hash function to the respective protobuf-generated enum.
Trait Implementations§
Source§impl Clone for HashFunction
impl Clone for HashFunction
Source§fn clone(&self) -> HashFunction
fn clone(&self) -> HashFunction
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 Debug for HashFunction
impl Debug for HashFunction
Source§impl PartialEq for HashFunction
impl PartialEq for HashFunction
impl Copy for HashFunction
impl StructuralPartialEq for HashFunction
Auto Trait Implementations§
impl Freeze for HashFunction
impl RefUnwindSafe for HashFunction
impl Send for HashFunction
impl Sync for HashFunction
impl Unpin for HashFunction
impl UnwindSafe for HashFunction
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