pub enum Error {
Show 193 variants
MpiFileIoError,
MpiBadInputData,
MpiInvalidCharacter,
MpiBufferTooSmall,
MpiNegativeValue,
MpiDivisionByZero,
MpiNotAcceptable,
MpiAllocFailed,
MdFeatureUnavailable,
MdBadInputData,
MdAllocFailed,
MdFileIoError,
EcpBadInputData,
EcpBufferTooSmall,
EcpFeatureUnavailable,
EcpVerifyFailed,
EcpAllocFailed,
EcpRandomFailed,
EcpInvalidKey,
EcpSigLenMismatch,
RsaBadInputData,
RsaInvalidPadding,
RsaKeyGenFailed,
RsaKeyCheckFailed,
RsaPublicFailed,
RsaPrivateFailed,
RsaVerifyFailed,
RsaOutputTooLarge,
RsaRngFailed,
Asn1OutOfData,
Asn1UnexpectedTag,
Asn1InvalidLength,
Asn1LengthMismatch,
Asn1InvalidData,
Asn1AllocFailed,
Asn1BufTooSmall,
PkAllocFailed,
PkTypeMismatch,
PkBadInputData,
PkFileIoError,
PkKeyInvalidVersion,
PkKeyInvalidFormat,
PkUnknownPkAlg,
PkPasswordRequired,
PkPasswordMismatch,
PkInvalidPubkey,
PkInvalidAlg,
PkUnknownNamedCurve,
PkFeatureUnavailable,
PkSigLenMismatch,
X509FeatureUnavailable,
X509UnknownOid,
X509InvalidFormat,
X509InvalidVersion,
X509InvalidSerial,
X509InvalidAlg,
X509InvalidName,
X509InvalidDate,
X509InvalidSignature,
X509InvalidExtensions,
X509UnknownVersion,
X509UnknownSigAlg,
X509SigMismatch,
X509CertVerifyFailed,
X509CertUnknownFormat,
X509BadInputData,
X509AllocFailed,
X509FileIoError,
X509BufferTooSmall,
CipherFeatureUnavailable,
CipherBadInputData,
CipherAllocFailed,
CipherInvalidPadding,
CipherFullBlockExpected,
CipherAuthFailed,
CipherInvalidContext,
DhmBadInputData,
DhmReadParamsFailed,
DhmMakeParamsFailed,
DhmReadPublicFailed,
DhmMakePublicFailed,
DhmCalcSecretFailed,
DhmInvalidFormat,
DhmAllocFailed,
DhmFileIoError,
SslFeatureUnavailable,
SslBadInputData,
SslInvalidMac,
SslInvalidRecord,
SslConnEof,
SslUnknownCipher,
SslNoCipherChosen,
SslNoRng,
SslNoClientCertificate,
SslCertificateTooLarge,
SslCertificateRequired,
SslPrivateKeyRequired,
SslCaChainRequired,
SslUnexpectedMessage,
SslFatalAlertMessage,
SslPeerVerifyFailed,
SslPeerCloseNotify,
SslBadHsClientHello,
SslBadHsServerHello,
SslBadHsCertificate,
SslBadHsCertificateRequest,
SslBadHsServerKeyExchange,
SslBadHsServerHelloDone,
SslBadHsClientKeyExchange,
SslBadHsClientKeyExchangeRp,
SslBadHsClientKeyExchangeCs,
SslBadHsCertificateVerify,
SslBadHsChangeCipherSpec,
SslBadHsFinished,
SslAllocFailed,
SslHwAccelFailed,
SslHwAccelFallthrough,
SslCompressionFailed,
SslBadHsProtocolVersion,
SslBadHsNewSessionTicket,
SslSessionTicketExpired,
SslPkTypeMismatch,
SslUnknownIdentity,
SslInternalError,
SslCounterWrapping,
SslWaitingServerHelloRenego,
SslHelloVerifyRequired,
SslBufferTooSmall,
SslNoUsableCiphersuite,
SslWantRead,
SslTimeout,
SslClientReconnect,
SslUnexpectedRecord,
AesInvalidKeyLength,
AesInvalidInputLength,
XteaInvalidInputLength,
Pkcs5BadInputData,
Pkcs5InvalidFormat,
Pkcs5FeatureUnavailable,
Pkcs5PasswordMismatch,
Pkcs12BadInputData,
Pkcs12FeatureUnavailable,
Pkcs12PbeInvalidFormat,
Pkcs12PasswordMismatch,
PadlockDataMisaligned,
OidNotFound,
OidBufTooSmall,
NetSocketFailed,
NetConnectFailed,
NetBindFailed,
NetListenFailed,
NetAcceptFailed,
NetRecvFailed,
NetSendFailed,
NetConnReset,
NetUnknownHost,
NetBufferTooSmall,
NetInvalidContext,
HmacDrbgRequestTooBig,
HmacDrbgInputTooBig,
HmacDrbgFileIoError,
HmacDrbgEntropySourceFailed,
GcmAuthFailed,
GcmBadInput,
EntropySourceFailed,
EntropyMaxSources,
EntropyNoSourcesDefined,
EntropyNoStrongSource,
EntropyFileIoError,
DesInvalidInputLength,
CtrDrbgEntropySourceFailed,
CtrDrbgRequestTooBig,
CtrDrbgInputTooBig,
CtrDrbgFileIoError,
CcmBadInput,
CcmAuthFailed,
CamelliaInvalidKeyLength,
CamelliaInvalidInputLength,
BlowfishInvalidKeyLength,
BlowfishInvalidInputLength,
Base64BufferTooSmall,
Base64InvalidCharacter,
PemNoHeaderFooterPresent,
PemInvalidData,
PemAllocFailed,
PemInvalidEncIv,
PemUnknownEncAlg,
PemPasswordRequired,
PemPasswordMismatch,
PemFeatureUnavailable,
PemBadInputData,
Other(c_int),
Utf8Error(Option<Utf8Error>),
}
Variants
MpiFileIoError
MpiBadInputData
MpiInvalidCharacter
MpiBufferTooSmall
MpiNegativeValue
MpiDivisionByZero
MpiNotAcceptable
MpiAllocFailed
MdFeatureUnavailable
MdBadInputData
MdAllocFailed
MdFileIoError
EcpBadInputData
EcpBufferTooSmall
EcpFeatureUnavailable
EcpVerifyFailed
EcpAllocFailed
EcpRandomFailed
EcpInvalidKey
EcpSigLenMismatch
RsaBadInputData
RsaInvalidPadding
RsaKeyGenFailed
RsaKeyCheckFailed
RsaPublicFailed
RsaPrivateFailed
RsaVerifyFailed
RsaOutputTooLarge
RsaRngFailed
Asn1OutOfData
Asn1UnexpectedTag
Asn1InvalidLength
Asn1LengthMismatch
Asn1InvalidData
Asn1AllocFailed
Asn1BufTooSmall
PkAllocFailed
PkTypeMismatch
PkBadInputData
PkFileIoError
PkKeyInvalidVersion
PkKeyInvalidFormat
PkUnknownPkAlg
PkPasswordRequired
PkPasswordMismatch
PkInvalidPubkey
PkInvalidAlg
PkUnknownNamedCurve
PkFeatureUnavailable
PkSigLenMismatch
X509FeatureUnavailable
X509UnknownOid
X509InvalidFormat
X509InvalidVersion
X509InvalidSerial
X509InvalidAlg
X509InvalidName
X509InvalidDate
X509InvalidSignature
X509InvalidExtensions
X509UnknownVersion
X509UnknownSigAlg
X509SigMismatch
X509CertVerifyFailed
X509CertUnknownFormat
X509BadInputData
X509AllocFailed
X509FileIoError
X509BufferTooSmall
CipherFeatureUnavailable
CipherBadInputData
CipherAllocFailed
CipherInvalidPadding
CipherFullBlockExpected
CipherAuthFailed
CipherInvalidContext
DhmBadInputData
DhmReadParamsFailed
DhmMakeParamsFailed
DhmReadPublicFailed
DhmMakePublicFailed
DhmCalcSecretFailed
DhmInvalidFormat
DhmAllocFailed
DhmFileIoError
SslFeatureUnavailable
SslBadInputData
SslInvalidMac
SslInvalidRecord
SslConnEof
SslUnknownCipher
SslNoCipherChosen
SslNoRng
SslNoClientCertificate
SslCertificateTooLarge
SslCertificateRequired
SslPrivateKeyRequired
SslCaChainRequired
SslUnexpectedMessage
SslFatalAlertMessage
SslPeerVerifyFailed
SslPeerCloseNotify
SslBadHsClientHello
SslBadHsServerHello
SslBadHsCertificate
SslBadHsCertificateRequest
SslBadHsServerKeyExchange
SslBadHsServerHelloDone
SslBadHsClientKeyExchange
SslBadHsClientKeyExchangeRp
SslBadHsClientKeyExchangeCs
SslBadHsCertificateVerify
SslBadHsChangeCipherSpec
SslBadHsFinished
SslAllocFailed
SslHwAccelFailed
SslHwAccelFallthrough
SslCompressionFailed
SslBadHsProtocolVersion
SslBadHsNewSessionTicket
SslSessionTicketExpired
SslPkTypeMismatch
SslUnknownIdentity
SslInternalError
SslCounterWrapping
SslWaitingServerHelloRenego
SslHelloVerifyRequired
SslBufferTooSmall
SslNoUsableCiphersuite
SslWantRead
SslTimeout
SslClientReconnect
SslUnexpectedRecord
AesInvalidKeyLength
AesInvalidInputLength
XteaInvalidInputLength
Pkcs5BadInputData
Pkcs5InvalidFormat
Pkcs5FeatureUnavailable
Pkcs5PasswordMismatch
Pkcs12BadInputData
Pkcs12FeatureUnavailable
Pkcs12PbeInvalidFormat
Pkcs12PasswordMismatch
PadlockDataMisaligned
OidNotFound
OidBufTooSmall
NetSocketFailed
NetConnectFailed
NetBindFailed
NetListenFailed
NetAcceptFailed
NetRecvFailed
NetSendFailed
NetConnReset
NetUnknownHost
NetBufferTooSmall
NetInvalidContext
HmacDrbgRequestTooBig
HmacDrbgInputTooBig
HmacDrbgFileIoError
HmacDrbgEntropySourceFailed
GcmAuthFailed
GcmBadInput
EntropySourceFailed
EntropyMaxSources
EntropyNoSourcesDefined
EntropyNoStrongSource
EntropyFileIoError
DesInvalidInputLength
CtrDrbgEntropySourceFailed
CtrDrbgRequestTooBig
CtrDrbgInputTooBig
CtrDrbgFileIoError
CcmBadInput
CcmAuthFailed
CamelliaInvalidKeyLength
CamelliaInvalidInputLength
BlowfishInvalidKeyLength
BlowfishInvalidInputLength
Base64BufferTooSmall
Base64InvalidCharacter
PemNoHeaderFooterPresent
PemInvalidData
PemAllocFailed
PemInvalidEncIv
PemUnknownEncAlg
PemPasswordRequired
PemPasswordMismatch
PemFeatureUnavailable
PemBadInputData
Other(c_int)
Utf8Error(Option<Utf8Error>)
Implementations
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
impl Eq for Error
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more