Struct gcrypt::Error []

pub struct Error { /* fields omitted */ }

A type wrapping errors produced by GPG libraries.

Methods

impl Error

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 PartialEq<Error> for Error

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

This method tests for !=.

impl From<NulError> for Error

impl From<Error> for Error

impl Display for Error

impl Eq for Error

impl Copy for Error

impl Debug for Error

Formats the value using the given formatter.

impl Hash for Error

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

Feeds a slice of this type into the state provided.

impl Clone for Error

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Error for Error