#[non_exhaustive]#[repr(u32)]pub enum HashingAlgorithm {
MD2 = 1,
MD4 = 2,
MD5 = 3,
SHA1 = 4,
SHA224 = 5,
SHA256 = 6,
SHA384 = 7,
SHA512 = 8,
RIPEMD160 = 9,
Tiger = 10,
Whirlpool = 11,
}Expand description
See KMIP 1.0 section 9.1.3.2.15 Hashing Algorithm Enumeration.
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.
MD2 = 1
MD4 = 2
MD5 = 3
SHA1 = 4
SHA224 = 5
SHA256 = 6
SHA384 = 7
SHA512 = 8
RIPEMD160 = 9
Tiger = 10
Whirlpool = 11
Implementations§
Source§impl HashingAlgorithm
impl HashingAlgorithm
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for HashingAlgorithm
impl Clone for HashingAlgorithm
impl Copy for HashingAlgorithm
Source§impl Debug for HashingAlgorithm
impl Debug for HashingAlgorithm
Source§impl Display for HashingAlgorithm
impl Display for HashingAlgorithm
impl Eq for HashingAlgorithm
Source§impl Ordinalize for HashingAlgorithm
impl Ordinalize for HashingAlgorithm
Source§const VARIANT_COUNT: usize = 11usize
const VARIANT_COUNT: usize = 11usize
The count of variants.
Source§type VariantType = u32
type VariantType = u32
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u32) -> Self
unsafe fn from_ordinal_unsafe(number: u32) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u32) -> Option<Self>
fn from_ordinal(number: u32) -> Option<Self>
Obtain a variant based on an integer number.
Source§impl PartialEq for HashingAlgorithm
impl PartialEq for HashingAlgorithm
impl StructuralPartialEq for HashingAlgorithm
Auto Trait Implementations§
impl Forget for HashingAlgorithm
impl Freeze for HashingAlgorithm
impl Move for HashingAlgorithm
impl RefUnwindSafe for HashingAlgorithm
impl Send for HashingAlgorithm
impl Sync for HashingAlgorithm
impl Unpin for HashingAlgorithm
impl UnsafeUnpin for HashingAlgorithm
impl UnwindSafe for HashingAlgorithm
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