Enum ursa::CryptoError[][src]

pub enum CryptoError {
    NoSuchAlgorithm(String),
    ParseError(String),
    SigningError(String),
    KeyGenError(String),
    DigestGenError(String),
    GeneralError(String),
}

Variants

NoSuchAlgorithm(String)

Returned when trying to create an algorithm which does not exist.

Tuple Fields of NoSuchAlgorithm

0: String
ParseError(String)

Returned when an error occurs during deserialization of a Private or Public key from various formats.

Tuple Fields of ParseError

0: String
SigningError(String)

Returned when an error occurs during the signing process.

Tuple Fields of SigningError

0: String
KeyGenError(String)

Returned when an error occurs during key generation

Tuple Fields of KeyGenError

0: String
DigestGenError(String)

Returned when an error occurs during digest generation

Tuple Fields of DigestGenError

0: String
GeneralError(String)

A General purpose error message that doesn’t fit in any category

Tuple Fields of GeneralError

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.