[][src]Enum gbl::ErrorKind

pub enum ErrorKind {
    ParseError,
    InvalidSignature,
    Other,
    // some variants omitted
}

The different kinds of errors that can occur.

Variants

Data could not be parsed because it is malformed.

"Data" in this case can be the GBL file, an ECDSA or an AES key file. This error can also mean that an invalid key was provided (eg. a non-ECDSA key).

When this is returned by Gbl::decrypt, it most likely means that the wrong AES key was provided, resulting in garbage data.

Signature was not created by the private key belonging to the provided public key.

An unspecified error occurred.

Displaying the Error should result in a more useful message. This error is generally used for errors in ring and OpenSSL.

Trait Implementations

impl From<ErrorKind> for Error
[src]

impl Clone for ErrorKind
[src]

Performs copy-assignment from source. Read more

impl Display for ErrorKind
[src]

impl Debug for ErrorKind
[src]

impl Fail for ErrorKind
[src]

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more