Struct Error

Source
pub struct Error(/* private fields */);
Expand description

A type wrapping errors produced by GPG libraries.

Implementations§

§

impl Error

pub const SOURCE_UNKNOWN: ErrorSource = 0u32

pub const SOURCE_GCRYPT: ErrorSource = 1u32

pub const SOURCE_GPG: ErrorSource = 2u32

pub const SOURCE_GPGSM: ErrorSource = 3u32

pub const SOURCE_GPGAGENT: ErrorSource = 4u32

pub const SOURCE_PINENTRY: ErrorSource = 5u32

pub const SOURCE_SCD: ErrorSource = 6u32

pub const SOURCE_GPGME: ErrorSource = 7u32

pub const SOURCE_KEYBOX: ErrorSource = 8u32

pub const SOURCE_KSBA: ErrorSource = 9u32

pub const SOURCE_DIRMNGR: ErrorSource = 10u32

pub const SOURCE_GSTI: ErrorSource = 11u32

pub const SOURCE_GPA: ErrorSource = 12u32

pub const SOURCE_KLEO: ErrorSource = 13u32

pub const SOURCE_G13: ErrorSource = 14u32

pub const SOURCE_ASSUAN: ErrorSource = 15u32

pub const SOURCE_TPM2D: ErrorSource = 16u32

pub const SOURCE_TLS: ErrorSource = 17u32

pub const SOURCE_TKD: ErrorSource = 18u32

pub const SOURCE_ANY: ErrorSource = 31u32

pub const SOURCE_USER_1: ErrorSource = 32u32

pub const SOURCE_USER_2: ErrorSource = 33u32

pub const SOURCE_USER_3: ErrorSource = 34u32

pub const SOURCE_USER_4: ErrorSource = 35u32

pub const NO_ERROR: Self

pub const GENERAL: Self

pub const UNKNOWN_PACKET: Self

pub const UNKNOWN_VERSION: Self

pub const PUBKEY_ALGO: Self

pub const DIGEST_ALGO: Self

pub const BAD_PUBKEY: Self

pub const BAD_SECKEY: Self

pub const BAD_SIGNATURE: Self

pub const NO_PUBKEY: Self

pub const CHECKSUM: Self

pub const BAD_PASSPHRASE: Self

pub const CIPHER_ALGO: Self

pub const KEYRING_OPEN: Self

pub const INV_PACKET: Self

pub const INV_ARMOR: Self

pub const NO_USER_ID: Self

pub const NO_SECKEY: Self

pub const WRONG_SECKEY: Self

pub const BAD_KEY: Self

pub const COMPR_ALGO: Self

pub const NO_PRIME: Self

pub const NO_ENCODING_METHOD: Self

pub const NO_ENCRYPTION_SCHEME: Self

pub const NO_SIGNATURE_SCHEME: Self

pub const INV_ATTR: Self

pub const NO_VALUE: Self

pub const NOT_FOUND: Self

pub const VALUE_NOT_FOUND: Self

pub const SYNTAX: Self

pub const BAD_MPI: Self

pub const INV_PASSPHRASE: Self

pub const SIG_CLASS: Self

pub const RESOURCE_LIMIT: Self

pub const INV_KEYRING: Self

pub const TRUSTDB: Self

pub const BAD_CERT: Self

pub const INV_USER_ID: Self

pub const UNEXPECTED: Self

pub const TIME_CONFLICT: Self

pub const KEYSERVER: Self

pub const WRONG_PUBKEY_ALGO: Self

pub const TRIBUTE_TO_D_A: Self

pub const WEAK_KEY: Self

pub const INV_KEYLEN: Self

pub const INV_ARG: Self

pub const BAD_URI: Self

pub const INV_URI: Self

pub const NETWORK: Self

pub const UNKNOWN_HOST: Self

pub const SELFTEST_FAILED: Self

pub const NOT_ENCRYPTED: Self

pub const NOT_PROCESSED: Self

pub const UNUSABLE_PUBKEY: Self

pub const UNUSABLE_SECKEY: Self

pub const INV_VALUE: Self

pub const BAD_CERT_CHAIN: Self

pub const MISSING_CERT: Self

pub const NO_DATA: Self

pub const BUG: Self

pub const NOT_SUPPORTED: Self

pub const INV_OP: Self

pub const TIMEOUT: Self

pub const INTERNAL: Self

pub const EOF_GCRYPT: Self

pub const INV_OBJ: Self

pub const TOO_SHORT: Self

pub const TOO_LARGE: Self

pub const NO_OBJ: Self

pub const NOT_IMPLEMENTED: Self

pub const CONFLICT: Self

pub const INV_CIPHER_MODE: Self

pub const INV_FLAG: Self

pub const INV_HANDLE: Self

pub const TRUNCATED: Self

pub const INCOMPLETE_LINE: Self

pub const INV_RESPONSE: Self

pub const NO_AGENT: Self

pub const AGENT: Self

pub const INV_DATA: Self

pub const ASSUAN_SERVER_FAULT: Self

pub const ASSUAN: Self

pub const INV_SESSION_KEY: Self

pub const INV_SEXP: Self

pub const UNSUPPORTED_ALGORITHM: Self

pub const NO_PIN_ENTRY: Self

pub const PIN_ENTRY: Self

pub const BAD_PIN: Self

pub const INV_NAME: Self

pub const BAD_DATA: Self

pub const INV_PARAMETER: Self

pub const WRONG_CARD: Self

pub const NO_DIRMNGR: Self

pub const DIRMNGR: Self

pub const CERT_REVOKED: Self

pub const NO_CRL_KNOWN: Self

pub const CRL_TOO_OLD: Self

pub const LINE_TOO_LONG: Self

pub const NOT_TRUSTED: Self

pub const CANCELED: Self

pub const BAD_CA_CERT: Self

pub const CERT_EXPIRED: Self

pub const CERT_TOO_YOUNG: Self

pub const UNSUPPORTED_CERT: Self

pub const UNKNOWN_SEXP: Self

pub const UNSUPPORTED_PROTECTION: Self

pub const CORRUPTED_PROTECTION: Self

pub const AMBIGUOUS_NAME: Self

pub const CARD: Self

pub const CARD_RESET: Self

pub const CARD_REMOVED: Self

pub const INV_CARD: Self

pub const CARD_NOT_PRESENT: Self

pub const NO_PKCS15_APP: Self

pub const NOT_CONFIRMED: Self

pub const CONFIGURATION: Self

pub const NO_POLICY_MATCH: Self

pub const INV_INDEX: Self

pub const INV_ID: Self

pub const NO_SCDAEMON: Self

pub const SCDAEMON: Self

pub const UNSUPPORTED_PROTOCOL: Self

pub const BAD_PIN_METHOD: Self

pub const CARD_NOT_INITIALIZED: Self

pub const UNSUPPORTED_OPERATION: Self

pub const WRONG_KEY_USAGE: Self

pub const NOTHING_FOUND: Self

pub const WRONG_BLOB_TYPE: Self

pub const MISSING_VALUE: Self

pub const HARDWARE: Self

pub const PIN_BLOCKED: Self

pub const USE_CONDITIONS: Self

pub const PIN_NOT_SYNCED: Self

pub const INV_CRL: Self

pub const BAD_BER: Self

pub const INV_BER: Self

pub const ELEMENT_NOT_FOUND: Self

pub const IDENTIFIER_NOT_FOUND: Self

pub const INV_TAG: Self

pub const INV_LENGTH: Self

pub const INV_KEYINFO: Self

pub const UNEXPECTED_TAG: Self

pub const NOT_DER_ENCODED: Self

pub const NO_CMS_OBJ: Self

pub const INV_CMS_OBJ: Self

pub const UNKNOWN_CMS_OBJ: Self

pub const UNSUPPORTED_CMS_OBJ: Self

pub const UNSUPPORTED_ENCODING: Self

pub const UNSUPPORTED_CMS_VERSION: Self

pub const UNKNOWN_ALGORITHM: Self

pub const INV_ENGINE: Self

pub const PUBKEY_NOT_TRUSTED: Self

pub const DECRYPT_FAILED: Self

pub const KEY_EXPIRED: Self

pub const SIG_EXPIRED: Self

pub const ENCODING_PROBLEM: Self

pub const INV_STATE: Self

pub const DUP_VALUE: Self

pub const MISSING_ACTION: Self

pub const MODULE_NOT_FOUND: Self

pub const INV_OID_STRING: Self

pub const INV_TIME: Self

pub const INV_CRL_OBJ: Self

pub const UNSUPPORTED_CRL_VERSION: Self

pub const INV_CERT_OBJ: Self

pub const UNKNOWN_NAME: Self

pub const LOCALE_PROBLEM: Self

pub const NOT_LOCKED: Self

pub const PROTOCOL_VIOLATION: Self

pub const INV_MAC: Self

pub const INV_REQUEST: Self

pub const UNKNOWN_EXTN: Self

pub const UNKNOWN_CRIT_EXTN: Self

pub const LOCKED: Self

pub const UNKNOWN_OPTION: Self

pub const UNKNOWN_COMMAND: Self

pub const NOT_OPERATIONAL: Self

pub const NO_PASSPHRASE: Self

pub const NO_PIN: Self

pub const NOT_ENABLED: Self

pub const NO_ENGINE: Self

pub const MISSING_KEY: Self

pub const TOO_MANY: Self

pub const LIMIT_REACHED: Self

pub const NOT_INITIALIZED: Self

pub const MISSING_ISSUER_CERT: Self

pub const NO_KEYSERVER: Self

pub const INV_CURVE: Self

pub const UNKNOWN_CURVE: Self

pub const DUP_KEY: Self

pub const AMBIGUOUS: Self

pub const NO_CRYPT_CTX: Self

pub const WRONG_CRYPT_CTX: Self

pub const BAD_CRYPT_CTX: Self

pub const CRYPT_CTX_CONFLICT: Self

pub const BROKEN_PUBKEY: Self

pub const BROKEN_SECKEY: Self

pub const MAC_ALGO: Self

pub const FULLY_CANCELED: Self

pub const UNFINISHED: Self

pub const BUFFER_TOO_SHORT: Self

pub const SEXP_INV_LEN_SPEC: Self

pub const SEXP_STRING_TOO_LONG: Self

pub const SEXP_UNMATCHED_PAREN: Self

pub const SEXP_NOT_CANONICAL: Self

pub const SEXP_BAD_CHARACTER: Self

pub const SEXP_BAD_QUOTATION: Self

pub const SEXP_ZERO_PREFIX: Self

pub const SEXP_NESTED_DH: Self

pub const SEXP_UNMATCHED_DH: Self

pub const SEXP_UNEXPECTED_PUNC: Self

pub const SEXP_BAD_HEX_CHAR: Self

pub const SEXP_ODD_HEX_NUMBERS: Self

pub const SEXP_BAD_OCT_CHAR: Self

pub const SUBKEYS_EXP_OR_REV: Self

pub const DB_CORRUPTED: Self

pub const SERVER_FAILED: Self

pub const NO_NAME: Self

pub const NO_KEY: Self

pub const LEGACY_KEY: Self

pub const REQUEST_TOO_SHORT: Self

pub const REQUEST_TOO_LONG: Self

pub const OBJ_TERM_STATE: Self

pub const NO_CERT_CHAIN: Self

pub const CERT_TOO_LARGE: Self

pub const INV_RECORD: Self

pub const BAD_MAC: Self

pub const UNEXPECTED_MSG: Self

pub const COMPR_FAILED: Self

pub const WOULD_WRAP: Self

pub const FATAL_ALERT: Self

pub const NO_CIPHER: Self

pub const MISSING_CLIENT_CERT: Self

pub const CLOSE_NOTIFY: Self

pub const TICKET_EXPIRED: Self

pub const BAD_TICKET: Self

pub const UNKNOWN_IDENTITY: Self

pub const BAD_HS_CERT: Self

pub const BAD_HS_CERT_REQ: Self

pub const BAD_HS_CERT_VER: Self

pub const BAD_HS_CHANGE_CIPHER: Self

pub const BAD_HS_CLIENT_HELLO: Self

pub const BAD_HS_SERVER_HELLO: Self

pub const BAD_HS_SERVER_HELLO_DONE: Self

pub const BAD_HS_FINISHED: Self

pub const BAD_HS_SERVER_KEX: Self

pub const BAD_HS_CLIENT_KEX: Self

pub const BOGUS_STRING: Self

pub const FORBIDDEN: Self

pub const KEY_DISABLED: Self

pub const KEY_ON_CARD: Self

pub const INV_LOCK_OBJ: Self

pub const TRUE: Self

pub const FALSE: Self

pub const ASS_GENERAL: Self

pub const ASS_ACCEPT_FAILED: Self

pub const ASS_CONNECT_FAILED: Self

pub const ASS_INV_RESPONSE: Self

pub const ASS_INV_VALUE: Self

pub const ASS_INCOMPLETE_LINE: Self

pub const ASS_LINE_TOO_LONG: Self

pub const ASS_NESTED_COMMANDS: Self

pub const ASS_NO_DATA_CB: Self

pub const ASS_NO_INQUIRE_CB: Self

pub const ASS_NOT_A_SERVER: Self

pub const ASS_NOT_A_CLIENT: Self

pub const ASS_SERVER_START: Self

pub const ASS_READ_ERROR: Self

pub const ASS_WRITE_ERROR: Self

pub const ASS_TOO_MUCH_DATA: Self

pub const ASS_UNEXPECTED_CMD: Self

pub const ASS_UNKNOWN_CMD: Self

pub const ASS_SYNTAX: Self

pub const ASS_CANCELED: Self

pub const ASS_NO_INPUT: Self

pub const ASS_NO_OUTPUT: Self

pub const ASS_PARAMETER: Self

pub const ASS_UNKNOWN_INQUIRE: Self

pub const ENGINE_TOO_OLD: Self

pub const WINDOW_TOO_SMALL: Self

pub const WINDOW_TOO_LARGE: Self

pub const MISSING_ENVVAR: Self

pub const USER_ID_EXISTS: Self

pub const NAME_EXISTS: Self

pub const DUP_NAME: Self

pub const TOO_YOUNG: Self

pub const TOO_OLD: Self

pub const UNKNOWN_FLAG: Self

pub const INV_ORDER: Self

pub const ALREADY_FETCHED: Self

pub const TRY_LATER: Self

pub const WRONG_NAME: Self

pub const NO_AUTH: Self

pub const BAD_AUTH: Self

pub const NO_KEYBOXD: Self

pub const KEYBOXD: Self

pub const NO_SERVICE: Self

pub const SERVICE: Self

pub const BAD_PUK: Self

pub const NO_RESET_CODE: Self

pub const BAD_RESET_CODE: Self

pub const SYSTEM_BUG: Self

pub const DNS_UNKNOWN: Self

pub const DNS_SECTION: Self

pub const DNS_ADDRESS: Self

pub const DNS_NO_QUERY: Self

pub const DNS_NO_ANSWER: Self

pub const DNS_CLOSED: Self

pub const DNS_VERIFY: Self

pub const DNS_TIMEOUT: Self

pub const LDAP_GENERAL: Self

pub const LDAP_ATTR_GENERAL: Self

pub const LDAP_NAME_GENERAL: Self

pub const LDAP_SECURITY_GENERAL: Self

pub const LDAP_SERVICE_GENERAL: Self

pub const LDAP_UPDATE_GENERAL: Self

pub const LDAP_E_GENERAL: Self

pub const LDAP_X_GENERAL: Self

pub const LDAP_OTHER_GENERAL: Self

pub const LDAP_X_CONNECTING: Self

pub const LDAP_REFERRAL_LIMIT: Self

pub const LDAP_CLIENT_LOOP: Self

pub const LDAP_NO_RESULTS: Self

pub const LDAP_CONTROL_NOT_FOUND: Self

pub const LDAP_NOT_SUPPORTED: Self

pub const LDAP_CONNECT: Self

pub const LDAP_NO_MEMORY: Self

pub const LDAP_PARAM: Self

pub const LDAP_USER_CANCELLED: Self

pub const LDAP_FILTER: Self

pub const LDAP_AUTH_UNKNOWN: Self

pub const LDAP_TIMEOUT: Self

pub const LDAP_DECODING: Self

pub const LDAP_ENCODING: Self

pub const LDAP_LOCAL: Self

pub const LDAP_SERVER_DOWN: Self

pub const LDAP_SUCCESS: Self

pub const LDAP_OPERATIONS: Self

pub const LDAP_PROTOCOL: Self

pub const LDAP_TIMELIMIT: Self

pub const LDAP_SIZELIMIT: Self

pub const LDAP_COMPARE_FALSE: Self

pub const LDAP_COMPARE_TRUE: Self

pub const LDAP_UNSUPPORTED_AUTH: Self

pub const LDAP_STRONG_AUTH_RQRD: Self

pub const LDAP_PARTIAL_RESULTS: Self

pub const LDAP_REFERRAL: Self

pub const LDAP_ADMINLIMIT: Self

pub const LDAP_UNAVAIL_CRIT_EXTN: Self

pub const LDAP_CONFIDENT_RQRD: Self

pub const LDAP_SASL_BIND_INPROG: Self

pub const LDAP_NO_SUCH_ATTRIBUTE: Self

pub const LDAP_UNDEFINED_TYPE: Self

pub const LDAP_BAD_MATCHING: Self

pub const LDAP_CONST_VIOLATION: Self

pub const LDAP_TYPE_VALUE_EXISTS: Self

pub const LDAP_INV_SYNTAX: Self

pub const LDAP_NO_SUCH_OBJ: Self

pub const LDAP_ALIAS_PROBLEM: Self

pub const LDAP_INV_DN_SYNTAX: Self

pub const LDAP_IS_LEAF: Self

pub const LDAP_ALIAS_DEREF: Self

pub const LDAP_X_PROXY_AUTH_FAIL: Self

pub const LDAP_BAD_AUTH: Self

pub const LDAP_INV_CREDENTIALS: Self

pub const LDAP_INSUFFICIENT_ACC: Self

pub const LDAP_BUSY: Self

pub const LDAP_UNAVAILABLE: Self

pub const LDAP_UNWILL_TO_PERFORM: Self

pub const LDAP_LOOP_DETECT: Self

pub const LDAP_NAMING_VIOLATION: Self

pub const LDAP_OBJ_CLS_VIOLATION: Self

pub const LDAP_NOT_ALLOW_NONLEAF: Self

pub const LDAP_NOT_ALLOW_ON_RDN: Self

pub const LDAP_ALREADY_EXISTS: Self

pub const LDAP_NO_OBJ_CLASS_MODS: Self

pub const LDAP_RESULTS_TOO_LARGE: Self

pub const LDAP_AFFECTS_MULT_DSAS: Self

pub const LDAP_VLV: Self

pub const LDAP_OTHER: Self

pub const LDAP_CUP_RESOURCE_LIMIT: Self

pub const LDAP_CUP_SEC_VIOLATION: Self

pub const LDAP_CUP_INV_DATA: Self

pub const LDAP_CUP_UNSUP_SCHEME: Self

pub const LDAP_CUP_RELOAD: Self

pub const LDAP_CANCELLED: Self

pub const LDAP_NO_SUCH_OPERATION: Self

pub const LDAP_TOO_LATE: Self

pub const LDAP_CANNOT_CANCEL: Self

pub const LDAP_ASSERTION_FAILED: Self

pub const LDAP_PROX_AUTH_DENIED: Self

pub const USER_1: Self

pub const USER_2: Self

pub const USER_3: Self

pub const USER_4: Self

pub const USER_5: Self

pub const USER_6: Self

pub const USER_7: Self

pub const USER_8: Self

pub const USER_9: Self

pub const USER_10: Self

pub const USER_11: Self

pub const USER_12: Self

pub const USER_13: Self

pub const USER_14: Self

pub const USER_15: Self

pub const USER_16: Self

pub const SQL_OK: Self

pub const SQL_ERROR: Self

pub const SQL_INTERNAL: Self

pub const SQL_PERM: Self

pub const SQL_ABORT: Self

pub const SQL_BUSY: Self

pub const SQL_LOCKED: Self

pub const SQL_NOMEM: Self

pub const SQL_READONLY: Self

pub const SQL_INTERRUPT: Self

pub const SQL_IOERR: Self

pub const SQL_CORRUPT: Self

pub const SQL_NOTFOUND: Self

pub const SQL_FULL: Self

pub const SQL_CANTOPEN: Self

pub const SQL_PROTOCOL: Self

pub const SQL_EMPTY: Self

pub const SQL_SCHEMA: Self

pub const SQL_TOOBIG: Self

pub const SQL_CONSTRAINT: Self

pub const SQL_MISMATCH: Self

pub const SQL_MISUSE: Self

pub const SQL_NOLFS: Self

pub const SQL_AUTH: Self

pub const SQL_FORMAT: Self

pub const SQL_RANGE: Self

pub const SQL_NOTADB: Self

pub const SQL_NOTICE: Self

pub const SQL_WARNING: Self

pub const SQL_ROW: Self

pub const SQL_DONE: Self

pub const MISSING_ERRNO: Self

pub const UNKNOWN_ERRNO: Self

pub const EOF: Self

pub const E2BIG: Self

pub const EACCES: Self

pub const EADDRINUSE: Self

pub const EADDRNOTAVAIL: Self

pub const EADV: Self

pub const EAFNOSUPPORT: Self

pub const EAGAIN: Self

pub const EALREADY: Self

pub const EAUTH: Self

pub const EBACKGROUND: Self

pub const EBADE: Self

pub const EBADF: Self

pub const EBADFD: Self

pub const EBADMSG: Self

pub const EBADR: Self

pub const EBADRPC: Self

pub const EBADRQC: Self

pub const EBADSLT: Self

pub const EBFONT: Self

pub const EBUSY: Self

pub const ECANCELED: Self

pub const ECHILD: Self

pub const ECHRNG: Self

pub const ECOMM: Self

pub const ECONNABORTED: Self

pub const ECONNREFUSED: Self

pub const ECONNRESET: Self

pub const ED: Self

pub const EDEADLK: Self

pub const EDEADLOCK: Self

pub const EDESTADDRREQ: Self

pub const EDIED: Self

pub const EDOM: Self

pub const EDOTDOT: Self

pub const EDQUOT: Self

pub const EEXIST: Self

pub const EFAULT: Self

pub const EFBIG: Self

pub const EFTYPE: Self

pub const EGRATUITOUS: Self

pub const EGREGIOUS: Self

pub const EHOSTDOWN: Self

pub const EHOSTUNREACH: Self

pub const EIDRM: Self

pub const EIEIO: Self

pub const EILSEQ: Self

pub const EINPROGRESS: Self

pub const EINTR: Self

pub const EINVAL: Self

pub const EIO: Self

pub const EISCONN: Self

pub const EISDIR: Self

pub const EISNAM: Self

pub const EL2HLT: Self

pub const EL2NSYNC: Self

pub const EL3HLT: Self

pub const EL3RST: Self

pub const ELIBACC: Self

pub const ELIBBAD: Self

pub const ELIBEXEC: Self

pub const ELIBMAX: Self

pub const ELIBSCN: Self

pub const ELNRNG: Self

pub const ELOOP: Self

pub const EMEDIUMTYPE: Self

pub const EMFILE: Self

pub const EMSGSIZE: Self

pub const EMULTIHOP: Self

pub const ENAMETOOLONG: Self

pub const ENAVAIL: Self

pub const ENEEDAUTH: Self

pub const ENETDOWN: Self

pub const ENETRESET: Self

pub const ENETUNREACH: Self

pub const ENFILE: Self

pub const ENOANO: Self

pub const ENOBUFS: Self

pub const ENOCSI: Self

pub const ENODATA: Self

pub const ENODEV: Self

pub const ENOENT: Self

pub const ENOEXEC: Self

pub const ENOLCK: Self

pub const ENOMEDIUM: Self

pub const ENOMEM: Self

pub const ENOMSG: Self

pub const ENONET: Self

pub const ENOPKG: Self

pub const ENOPROTOOPT: Self

pub const ENOSPC: Self

pub const ENOSR: Self

pub const ENOSTR: Self

pub const ENOSYS: Self

pub const ENOTBLK: Self

pub const ENOTCONN: Self

pub const ENOTDIR: Self

pub const ENOTEMPTY: Self

pub const ENOTNAM: Self

pub const ENOTSOCK: Self

pub const ENOTSUP: Self

pub const ENOTTY: Self

pub const ENOTUNIQ: Self

pub const ENXIO: Self

pub const EOPNOTSUPP: Self

pub const EOVERFLOW: Self

pub const EPERM: Self

pub const EPFNOSUPPORT: Self

pub const EPIPE: Self

pub const EPROCLIM: Self

pub const EPROCUNAVAIL: Self

pub const EPROGMISMATCH: Self

pub const EPROGUNAVAIL: Self

pub const EPROTO: Self

pub const EPROTONOSUPPORT: Self

pub const EPROTOTYPE: Self

pub const ERANGE: Self

pub const EREMCHG: Self

pub const EREMOTE: Self

pub const EREMOTEIO: Self

pub const ERESTART: Self

pub const EROFS: Self

pub const ERPCMISMATCH: Self

pub const ESHUTDOWN: Self

pub const ESOCKTNOSUPPORT: Self

pub const ESPIPE: Self

pub const ESRCH: Self

pub const ESRMNT: Self

pub const ESTALE: Self

pub const ESTRPIPE: Self

pub const ETIME: Self

pub const ETIMEDOUT: Self

pub const ETOOMANYREFS: Self

pub const ETXTBSY: Self

pub const EUCLEAN: Self

pub const EUNATCH: Self

pub const EUSERS: Self

pub const EWOULDBLOCK: Self

pub const EXDEV: Self

pub const EXFULL: Self

Source§

impl Error

Source

pub const fn new(err: gpg_error_t) -> Self

Creates a new error from a raw error value.

Source

pub const fn raw(&self) -> gpg_error_t

Returns the raw error value that this error wraps.

Source

pub fn from_source(source: ErrorSource, code: ErrorCode) -> Self

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

Source

pub fn from_code(code: ErrorCode) -> Self

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

Source

pub fn last_os_error() -> Self

Returns an error representing the last OS error that occurred.

Source

pub fn from_errno(code: i32) -> Self

Creates a new error from an OS error code.

Source

pub fn to_errno(&self) -> i32

Returns the OS error that this error represents.

Source

pub const fn code(&self) -> ErrorCode

Returns the error code.

Source

pub fn source(&self) -> Option<&'static str>

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

Source

pub fn with_source(&self, src: ErrorSource) -> Self

Returns an Error with the same code from the provided source.

Source

pub fn raw_source(&self) -> Option<&'static [u8]>

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

Source

pub fn description(&self) -> Cow<'static, str>

Returns a printable description of the error.

Source

pub fn raw_description(&self) -> Cow<'static, [u8]>

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

Source

pub fn write_description<'r>( &self, buf: &'r mut [u8], ) -> Result<&'r mut [u8], ()>

Writes a description of the error to the provided buffer and returns a slice of the buffer containing the description.

§Errors

Returns an error if the provided buffer is not long enough or if the error is not recognized.

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Infallible> for Error

Source§

fn from(x: Infallible) -> Self

Converts to this type from the input type.
Source§

impl From<NulError> for Error

Source§

fn from(_: NulError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromIntError> for Error

Source§

fn from(_: TryFromIntError) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Error

Source§

fn from(e: gpg_error_t) -> Self

Converts to this type from the input type.
Source§

impl Hash for Error

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Error

Source§

impl Eq for Error

Source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.