Enum blake::BlakeError [] [src]

pub enum BlakeError {
    Fail,
    BadHashbitlen,
}

Some functions in the library can fail, this enum represents all the possible ways they can.

Variants

Fail

Generic failure state

BadHashbitlen

hashbitlen passed to Blake::new() or hash() incorrect

Trait Implementations

impl Eq for BlakeError
[src]

impl PartialEq for BlakeError
[src]

fn eq(&self, __arg_0: &BlakeError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Hash for BlakeError
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Copy for BlakeError
[src]

impl Clone for BlakeError
[src]

fn clone(&self) -> BlakeError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for BlakeError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for BlakeError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more

impl From<i32> for BlakeError
[src]

fn from(i: i32) -> Self

Passing incorrect error values yields unspecified behaviour.

impl Display for BlakeError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.