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§fn eq(&self, other: &ShaVariant) -> bool
fn eq(&self, other: &ShaVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ObjectIdentifierAsn1> for ShaVariant
impl TryFrom<ObjectIdentifierAsn1> for ShaVariant
§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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)