Struct gcrypt::Error [] [src]

pub struct Error { /* fields omitted */ }

A type wrapping errors produced by GPG libraries.

Methods

impl Error
[src]

Creates a new error from a raw error value.

Returns the raw error value that this error wraps.

Creates a new error from an error source and an error code.

Creates a new error from an error code using the default error source GPG_ERR_SOURCE_USER_1.

Returns an error representing the last OS error that occurred.

Creates a new error from an OS error code.

Returns the OS error that this error represents.

Returns the error code.

Returns a description of the source of the error as a UTF-8 string.

Returns a description of the source of the error as a slice of bytes.

Returns a printable description of the error.

Returns a description of the error as a slice of bytes.

Trait Implementations

impl Display for Error
[src]

impl Eq for Error
[src]

impl Copy for Error
[src]

impl From<NulError> for Error
[src]

impl From<Error> for Error
[src]

impl PartialEq<Error> for Error
[src]

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

This method tests for !=.

impl Error for Error
[src]

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Hash for Error
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more