Struct gcrypt::Error [] [src]

pub struct Error { /* fields omitted */ }

A type wrapping errors produced by GPG libraries.

Methods

impl Error
[src]

[src]

Creates a new error from a raw error value.

[src]

Returns the raw error value that this error wraps.

[src]

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

[src]

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

[src]

Returns an error representing the last OS error that occurred.

[src]

Creates a new error from an OS error code.

[src]

Returns the OS error that this error represents.

[src]

Returns the error code.

[src]

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

[src]

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

[src]

Returns a printable description of the error.

[src]

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

Trait Implementations

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<NulError> for Error
[src]

impl From<Error> for Error
[src]

[src]

impl Copy for Error
[src]

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Error for Error
[src]

[src]

impl Display for Error
[src]

[src]

impl Eq for Error
[src]

impl PartialEq<Error> for Error
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Error
[src]

[src]

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

1.3.0
[src]

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