Enum tinydtls_sys::dtls_hashfunc_t
source · #[repr(u32)]
#[non_exhaustive]
pub enum dtls_hashfunc_t {
HASH_NONE,
HASH_MD5,
HASH_SHA1,
HASH_SHA224,
HASH_SHA256,
HASH_SHA384,
HASH_SHA512,
}Expand description
List of known hash functions for use in dtls_hmac_init(). The identifiers are the same as the HashAlgorithm defined in Section 7.4.1.4.1 of RFC 5246.
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.
HASH_NONE
HASH_MD5
HASH_SHA1
HASH_SHA224
HASH_SHA256
HASH_SHA384
HASH_SHA512
Trait Implementations
sourceimpl Clone for dtls_hashfunc_t
impl Clone for dtls_hashfunc_t
sourcefn clone(&self) -> dtls_hashfunc_t
fn clone(&self) -> dtls_hashfunc_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for dtls_hashfunc_t
impl Debug for dtls_hashfunc_t
sourceimpl Hash for dtls_hashfunc_t
impl Hash for dtls_hashfunc_t
sourceimpl PartialEq<dtls_hashfunc_t> for dtls_hashfunc_t
impl PartialEq<dtls_hashfunc_t> for dtls_hashfunc_t
sourcefn eq(&self, other: &dtls_hashfunc_t) -> bool
fn eq(&self, other: &dtls_hashfunc_t) -> bool
impl Copy for dtls_hashfunc_t
impl Eq for dtls_hashfunc_t
impl StructuralEq for dtls_hashfunc_t
impl StructuralPartialEq for dtls_hashfunc_t
Auto Trait Implementations
impl RefUnwindSafe for dtls_hashfunc_t
impl Send for dtls_hashfunc_t
impl Sync for dtls_hashfunc_t
impl Unpin for dtls_hashfunc_t
impl UnwindSafe for dtls_hashfunc_t
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