Enum mbedtls::Error[][src]

pub enum Error {
Show 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
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>)

Implementations

impl Error[src]

pub fn from_mbedtls_code(code: c_int) -> Self[src]

pub fn as_str(&self) -> &'static str[src]

pub fn to_int(&self) -> c_int[src]

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl From<Infallible> for Error[src]

impl From<Utf8Error> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.