pub enum Hash {
MD5(Md5, String),
SHA224(Sha224, String),
SHA256(Sha256, String),
SHA384(Sha384, String),
SHA512(Sha512, String),
}Expand description
Available checksum types
Variants§
MD5(Md5, String)
MD5 sum
SHA224(Sha224, String)
Sha224 sum
SHA256(Sha256, String)
Sha256 sum
SHA384(Sha384, String)
Sha384 sum
SHA512(Sha512, String)
Sha512 sum
Implementations§
Source§impl Hash
impl Hash
Sourcepub fn new_sha224(to_verify: String) -> Self
pub fn new_sha224(to_verify: String) -> Self
New SHA224 hash value
Sourcepub fn new_sha256(to_verify: String) -> Self
pub fn new_sha256(to_verify: String) -> Self
New SHA256 hash value
Sourcepub fn new_sha384(to_verify: String) -> Self
pub fn new_sha384(to_verify: String) -> Self
New SHA384 hash value
Sourcepub fn new_sha512(to_verify: String) -> Self
pub fn new_sha512(to_verify: String) -> Self
New SHA512 hash value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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