pub enum Error {
Show 237 variants
AesBadInputData,
AesFeatureUnavailable,
AesHwAccelFailed,
AesInvalidInputLength,
AesInvalidKeyLength,
Arc4HwAccelFailed,
AriaFeatureUnavailable,
AriaHwAccelFailed,
AriaInvalidInputLength,
Asn1AllocFailed,
Asn1BufTooSmall,
Asn1InvalidData,
Asn1InvalidLength,
Asn1LengthMismatch,
Asn1OutOfData,
Asn1UnexpectedTag,
Base64BufferTooSmall,
Base64InvalidCharacter,
BlowfishHwAccelFailed,
BlowfishInvalidInputLength,
CamelliaHwAccelFailed,
CamelliaInvalidInputLength,
CcmAuthFailed,
CcmBadInput,
CcmHwAccelFailed,
Chacha20BadInputData,
Chacha20FeatureUnavailable,
Chacha20HwAccelFailed,
ChachapolyAuthFailed,
ChachapolyBadState,
CipherAllocFailed,
CipherAuthFailed,
CipherBadInputData,
CipherFeatureUnavailable,
CipherFullBlockExpected,
CipherHwAccelFailed,
CipherInvalidContext,
CipherInvalidPadding,
CmacHwAccelFailed,
CtrDrbgEntropySourceFailed,
CtrDrbgFileIoError,
CtrDrbgInputTooBig,
CtrDrbgRequestTooBig,
DesHwAccelFailed,
DesInvalidInputLength,
DhmAllocFailed,
DhmBadInputData,
DhmCalcSecretFailed,
DhmFileIoError,
DhmHwAccelFailed,
DhmInvalidFormat,
DhmMakeParamsFailed,
DhmMakePublicFailed,
DhmReadParamsFailed,
DhmReadPublicFailed,
DhmSetGroupFailed,
EcpAllocFailed,
EcpBadInputData,
EcpBufferTooSmall,
EcpFeatureUnavailable,
EcpHwAccelFailed,
EcpInvalidKey,
EcpRandomFailed,
EcpSigLenMismatch,
EcpVerifyFailed,
EntropyFileIoError,
EntropyMaxSources,
EntropyNoSourcesDefined,
EntropyNoStrongSource,
EntropySourceFailed,
GcmAuthFailed,
GcmBadInput,
GcmHwAccelFailed,
HkdfBadInputData,
HmacDrbgEntropySourceFailed,
HmacDrbgFileIoError,
HmacDrbgInputTooBig,
HmacDrbgRequestTooBig,
Md2HwAccelFailed,
Md4HwAccelFailed,
Md5HwAccelFailed,
MdAllocFailed,
MdBadInputData,
MdFeatureUnavailable,
MdFileIoError,
MdHwAccelFailed,
MpiAllocFailed,
MpiBadInputData,
MpiBufferTooSmall,
MpiDivisionByZero,
MpiFileIoError,
MpiInvalidCharacter,
MpiNegativeValue,
MpiNotAcceptable,
NetAcceptFailed,
NetBadInputData,
NetBindFailed,
NetBufferTooSmall,
NetConnReset,
NetConnectFailed,
NetInvalidContext,
NetListenFailed,
NetPollFailed,
NetRecvFailed,
NetSendFailed,
NetSocketFailed,
NetUnknownHost,
OidBufTooSmall,
OidNotFound,
PadlockDataMisaligned,
PemAllocFailed,
PemBadInputData,
PemFeatureUnavailable,
PemInvalidData,
PemInvalidEncIv,
PemNoHeaderFooterPresent,
PemPasswordMismatch,
PemPasswordRequired,
PemUnknownEncAlg,
PkAllocFailed,
PkBadInputData,
PkFeatureUnavailable,
PkFileIoError,
PkHwAccelFailed,
PkInvalidAlg,
PkInvalidPubkey,
PkKeyInvalidFormat,
PkKeyInvalidVersion,
PkPasswordMismatch,
PkPasswordRequired,
PkSigLenMismatch,
PkTypeMismatch,
PkUnknownNamedCurve,
PkUnknownPkAlg,
Pkcs12BadInputData,
Pkcs12FeatureUnavailable,
Pkcs12PasswordMismatch,
Pkcs12PbeInvalidFormat,
Pkcs5BadInputData,
Pkcs5FeatureUnavailable,
Pkcs5InvalidFormat,
Pkcs5PasswordMismatch,
Poly1305BadInputData,
Poly1305FeatureUnavailable,
Poly1305HwAccelFailed,
Ripemd160HwAccelFailed,
RsaBadInputData,
RsaHwAccelFailed,
RsaInvalidPadding,
RsaKeyCheckFailed,
RsaKeyGenFailed,
RsaOutputTooLarge,
RsaPrivateFailed,
RsaPublicFailed,
RsaRngFailed,
RsaUnsupportedOperation,
RsaVerifyFailed,
Sha1HwAccelFailed,
Sha256HwAccelFailed,
Sha512HwAccelFailed,
SslAllocFailed,
SslAsyncInProgress,
SslBadHsCertificate,
SslBadHsCertificateRequest,
SslBadHsCertificateVerify,
SslBadHsChangeCipherSpec,
SslBadHsClientHello,
SslBadHsClientKeyExchange,
SslBadHsClientKeyExchangeCs,
SslBadHsClientKeyExchangeRp,
SslBadHsFinished,
SslBadHsNewSessionTicket,
SslBadHsProtocolVersion,
SslBadHsServerHello,
SslBadHsServerHelloDone,
SslBadHsServerKeyExchange,
SslBadInputData,
SslBufferTooSmall,
SslCaChainRequired,
SslCertificateRequired,
SslCertificateTooLarge,
SslClientReconnect,
SslCompressionFailed,
SslConnEof,
SslContinueProcessing,
SslCounterWrapping,
SslFatalAlertMessage,
SslFeatureUnavailable,
SslHelloVerifyRequired,
SslHwAccelFailed,
SslHwAccelFallthrough,
SslInternalError,
SslInvalidMac,
SslInvalidRecord,
SslInvalidVerifyHash,
SslNoCipherChosen,
SslNoClientCertificate,
SslNoRng,
SslNoUsableCiphersuite,
SslNonFatal,
SslPeerCloseNotify,
SslPeerVerifyFailed,
SslPkTypeMismatch,
SslPrivateKeyRequired,
SslSessionTicketExpired,
SslTimeout,
SslUnexpectedMessage,
SslUnexpectedRecord,
SslUnknownCipher,
SslUnknownIdentity,
SslWaitingServerHelloRenego,
SslWantRead,
SslWantWrite,
X509AllocFailed,
X509BadInputData,
X509BufferTooSmall,
X509CertUnknownFormat,
X509CertVerifyFailed,
X509FatalError,
X509FeatureUnavailable,
X509FileIoError,
X509InvalidAlg,
X509InvalidDate,
X509InvalidExtensions,
X509InvalidFormat,
X509InvalidName,
X509InvalidSerial,
X509InvalidSignature,
X509InvalidVersion,
X509SigMismatch,
X509UnknownOid,
X509UnknownSigAlg,
X509UnknownVersion,
XteaHwAccelFailed,
XteaInvalidInputLength,
Other(c_int),
Utf8Error(Option<Utf8Error>),
// some variants omitted
}
Variants§
AesBadInputData
AesHwAccelFailed
AesInvalidInputLength
AesInvalidKeyLength
Arc4HwAccelFailed
AriaHwAccelFailed
AriaInvalidInputLength
Asn1AllocFailed
Asn1BufTooSmall
Asn1InvalidData
Asn1InvalidLength
Asn1LengthMismatch
Asn1OutOfData
Asn1UnexpectedTag
Base64BufferTooSmall
Base64InvalidCharacter
BlowfishHwAccelFailed
BlowfishInvalidInputLength
CamelliaHwAccelFailed
CamelliaInvalidInputLength
CcmAuthFailed
CcmBadInput
CcmHwAccelFailed
Chacha20BadInputData
Chacha20HwAccelFailed
ChachapolyAuthFailed
ChachapolyBadState
CipherAllocFailed
CipherAuthFailed
CipherBadInputData
CipherFullBlockExpected
CipherHwAccelFailed
CipherInvalidContext
CipherInvalidPadding
CmacHwAccelFailed
CtrDrbgEntropySourceFailed
CtrDrbgFileIoError
CtrDrbgInputTooBig
CtrDrbgRequestTooBig
DesHwAccelFailed
DesInvalidInputLength
DhmAllocFailed
DhmBadInputData
DhmCalcSecretFailed
DhmFileIoError
DhmHwAccelFailed
DhmInvalidFormat
DhmMakeParamsFailed
DhmMakePublicFailed
DhmReadParamsFailed
DhmReadPublicFailed
DhmSetGroupFailed
EcpAllocFailed
EcpBadInputData
EcpBufferTooSmall
EcpHwAccelFailed
EcpInvalidKey
EcpRandomFailed
EcpSigLenMismatch
EcpVerifyFailed
EntropyFileIoError
EntropyMaxSources
EntropyNoSourcesDefined
EntropyNoStrongSource
EntropySourceFailed
GcmAuthFailed
GcmBadInput
GcmHwAccelFailed
HkdfBadInputData
HmacDrbgEntropySourceFailed
HmacDrbgFileIoError
HmacDrbgInputTooBig
HmacDrbgRequestTooBig
Md2HwAccelFailed
Md4HwAccelFailed
Md5HwAccelFailed
MdAllocFailed
MdBadInputData
MdFileIoError
MdHwAccelFailed
MpiAllocFailed
MpiBadInputData
MpiBufferTooSmall
MpiDivisionByZero
MpiFileIoError
MpiInvalidCharacter
MpiNegativeValue
MpiNotAcceptable
NetAcceptFailed
NetBadInputData
NetBindFailed
NetBufferTooSmall
NetConnReset
NetConnectFailed
NetInvalidContext
NetListenFailed
NetPollFailed
NetRecvFailed
NetSendFailed
NetSocketFailed
NetUnknownHost
OidBufTooSmall
OidNotFound
PadlockDataMisaligned
PemAllocFailed
PemBadInputData
PemInvalidData
PemInvalidEncIv
PemPasswordMismatch
PemPasswordRequired
PemUnknownEncAlg
PkAllocFailed
PkBadInputData
PkFileIoError
PkHwAccelFailed
PkInvalidAlg
PkInvalidPubkey
PkKeyInvalidFormat
PkKeyInvalidVersion
PkPasswordMismatch
PkPasswordRequired
PkSigLenMismatch
PkTypeMismatch
PkUnknownNamedCurve
PkUnknownPkAlg
Pkcs12BadInputData
Pkcs12PasswordMismatch
Pkcs12PbeInvalidFormat
Pkcs5BadInputData
Pkcs5InvalidFormat
Pkcs5PasswordMismatch
Poly1305BadInputData
Poly1305HwAccelFailed
Ripemd160HwAccelFailed
RsaBadInputData
RsaHwAccelFailed
RsaInvalidPadding
RsaKeyCheckFailed
RsaKeyGenFailed
RsaOutputTooLarge
RsaPrivateFailed
RsaPublicFailed
RsaRngFailed
RsaUnsupportedOperation
RsaVerifyFailed
Sha1HwAccelFailed
Sha256HwAccelFailed
Sha512HwAccelFailed
SslAllocFailed
SslAsyncInProgress
SslBadHsCertificate
SslBadHsCertificateRequest
SslBadHsCertificateVerify
SslBadHsChangeCipherSpec
SslBadHsClientHello
SslBadHsClientKeyExchange
SslBadHsClientKeyExchangeCs
SslBadHsClientKeyExchangeRp
SslBadHsFinished
SslBadHsNewSessionTicket
SslBadHsProtocolVersion
SslBadHsServerHello
SslBadHsServerHelloDone
SslBadHsServerKeyExchange
SslBadInputData
SslBufferTooSmall
SslCaChainRequired
SslCertificateRequired
SslCertificateTooLarge
SslClientReconnect
SslCompressionFailed
SslConnEof
SslContinueProcessing
SslCounterWrapping
SslFatalAlertMessage
SslHelloVerifyRequired
SslHwAccelFailed
SslHwAccelFallthrough
SslInternalError
SslInvalidMac
SslInvalidRecord
SslInvalidVerifyHash
SslNoCipherChosen
SslNoClientCertificate
SslNoRng
SslNoUsableCiphersuite
SslNonFatal
SslPeerCloseNotify
SslPeerVerifyFailed
SslPkTypeMismatch
SslPrivateKeyRequired
SslSessionTicketExpired
SslTimeout
SslUnexpectedMessage
SslUnexpectedRecord
SslUnknownCipher
SslUnknownIdentity
SslWaitingServerHelloRenego
SslWantRead
SslWantWrite
X509AllocFailed
X509BadInputData
X509BufferTooSmall
X509CertUnknownFormat
X509CertVerifyFailed
X509FatalError
X509FileIoError
X509InvalidAlg
X509InvalidDate
X509InvalidExtensions
X509InvalidFormat
X509InvalidName
X509InvalidSerial
X509InvalidSignature
X509InvalidVersion
X509SigMismatch
X509UnknownOid
X509UnknownSigAlg
X509UnknownVersion
XteaHwAccelFailed
XteaInvalidInputLength
Other(c_int)
Utf8Error(Option<Utf8Error>)
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
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)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(x: Infallible) -> Error
fn from(x: Infallible) -> Error
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more