pub enum HashAlgorithm {
MD5,
Sha224,
Sha256,
Sha384,
Sha512,
}Expand description
HashAlgorithm is the type of the hash algorithm.
Variants§
MD5
Represents the MD5 algorithm.
Sha224
Represents the SHA-224 algorithm.
Sha256
Represents the SHA-256 algorithm.
Sha384
Represents the SHA-384 algorithm.
Sha512
Represents the SHA-512 algorithm.
Implementations§
Trait Implementations§
Source§impl From<HashAlgorithm> for HashAlgorithm
impl From<HashAlgorithm> for HashAlgorithm
Source§fn from(algorithm: HashAlgorithm) -> Self
fn from(algorithm: HashAlgorithm) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HashAlgorithm
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnsafeUnpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more