Enum sleep_parser::HashType [−][src]
pub enum HashType { BLAKE2b, Ed25519, None, }
Algorithm used for hashing the data.
Variants
BLAKE2b
BLAKE2b hashing algorithm.
Ed25519
Ed25519 hashing algorithm.
None
No hashing used.
Methods
impl HashType
[src]
impl HashType
pub fn is_blake2b(&self) -> bool
[src]
pub fn is_blake2b(&self) -> bool
Returns true if the hash is BLAKE2b
pub fn is_ed25519(&self) -> bool
[src]
pub fn is_ed25519(&self) -> bool
Returns true if the hash is Ed25519
pub fn is_none(&self) -> bool
[src]
pub fn is_none(&self) -> bool
Returns true if no hash function was used.
Trait Implementations
impl Debug for HashType
[src]
impl Debug for HashType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for HashType
[src]
impl PartialEq for HashType