Enum rocfl::ocfl::DigestAlgorithm [−][src]
pub enum DigestAlgorithm {
Md5,
Sha1,
Sha256,
Sha512,
Sha512_256,
Blake2b512,
Blake2b160,
Blake2b256,
Blake2b384,
}
Expand description
Enum of all valid digest algorithms
Variants
Implementations
Hashes the input and returns its hex encoded digest
Wraps the specified reader in a DigestReader
. Does not support blake2b because of the
DynDigest problem.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Auto Trait Implementations
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more