#[non_exhaustive]pub enum HmacAlgorithm {
Sha1,
Sha256,
}Expand description
Algorithms accepted by the HMAC operations.
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§
Source§impl HmacAlgorithm
impl HmacAlgorithm
Sourcepub const fn output_len(self) -> usize
pub const fn output_len(self) -> usize
Returns the native tag length in bytes.
Trait Implementations§
Source§impl Clone for HmacAlgorithm
impl Clone for HmacAlgorithm
Source§fn clone(&self) -> HmacAlgorithm
fn clone(&self) -> HmacAlgorithm
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 HmacAlgorithm
Source§impl Debug for HmacAlgorithm
impl Debug for HmacAlgorithm
impl Eq for HmacAlgorithm
Source§impl Hash for HmacAlgorithm
impl Hash for HmacAlgorithm
Source§impl PartialEq for HmacAlgorithm
impl PartialEq for HmacAlgorithm
impl StructuralPartialEq for HmacAlgorithm
Auto Trait Implementations§
impl Freeze for HmacAlgorithm
impl RefUnwindSafe for HmacAlgorithm
impl Send for HmacAlgorithm
impl Sync for HmacAlgorithm
impl Unpin for HmacAlgorithm
impl UnsafeUnpin for HmacAlgorithm
impl UnwindSafe for HmacAlgorithm
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