pub enum ShaVariant {
Show 14 variants
MD5,
SHA1,
SHA2_224,
SHA2_256,
SHA2_384,
SHA2_512,
SHA2_512_224,
SHA2_512_256,
SHA3_224,
SHA3_256,
SHA3_384,
SHA3_512,
SHAKE128,
SHAKE256,
}
Variants§
MD5
SHA1
SHA2_224
SHA2_256
SHA2_384
SHA2_512
SHA2_512_224
SHA2_512_256
SHA3_224
SHA3_256
SHA3_384
SHA3_512
SHAKE128
SHAKE256
Trait Implementations§
Source§impl Clone for ShaVariant
impl Clone for ShaVariant
Source§fn clone(&self) -> ShaVariant
fn clone(&self) -> ShaVariant
Returns a copy 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 ShaVariant
impl Debug for ShaVariant
Source§impl From<ShaVariant> for ObjectIdentifierAsn1
impl From<ShaVariant> for ObjectIdentifierAsn1
Source§fn from(variant: ShaVariant) -> Self
fn from(variant: ShaVariant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ShaVariant
impl PartialEq for ShaVariant
Source§impl TryFrom<ObjectIdentifierAsn1> for ShaVariant
impl TryFrom<ObjectIdentifierAsn1> for ShaVariant
Source§type Error = UnsupportedAlgorithmError
type Error = UnsupportedAlgorithmError
The type returned in the event of a conversion error.
impl Copy for ShaVariant
impl Eq for ShaVariant
impl StructuralPartialEq for ShaVariant
Auto Trait Implementations§
impl Freeze for ShaVariant
impl RefUnwindSafe for ShaVariant
impl Send for ShaVariant
impl Sync for ShaVariant
impl Unpin for ShaVariant
impl UnwindSafe for ShaVariant
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