Enum mbedtls::Error

source ·
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

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
The lower-level source of this error, if any. Read more
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.