Enum rustls_ffi::rustls_result[][src]

#[repr(u32)]
pub enum rustls_result {
Show 73 variants Ok, Io, NullParameter, InvalidDnsNameError, Panic, CertificateParseError, PrivateKeyParseError, InsufficientSize, NotFound, InvalidParameter, UnexpectedEof, PlaintextEmpty, CorruptMessage, NoCertificatesPresented, DecryptError, FailedToGetCurrentTime, FailedToGetRandomBytes, HandshakeNotComplete, PeerSentOversizedRecord, NoApplicationProtocol, BadMaxFragmentSize, UnsupportedNameType, EncryptError, CertInvalidEncoding, CertInvalidSignatureType, CertInvalidSignature, CertInvalidData, PeerIncompatibleError, PeerMisbehavedError, InappropriateMessage, InappropriateHandshakeMessage, CorruptMessagePayload, General, AlertCloseNotify, AlertUnexpectedMessage, AlertBadRecordMac, AlertDecryptionFailed, AlertRecordOverflow, AlertDecompressionFailure, AlertHandshakeFailure, AlertNoCertificate, AlertBadCertificate, AlertUnsupportedCertificate, AlertCertificateRevoked, AlertCertificateExpired, AlertCertificateUnknown, AlertIllegalParameter, AlertUnknownCA, AlertAccessDenied, AlertDecodeError, AlertDecryptError, AlertExportRestriction, AlertProtocolVersion, AlertInsufficientSecurity, AlertInternalError, AlertInappropriateFallback, AlertUserCanceled, AlertNoRenegotiation, AlertMissingExtension, AlertUnsupportedExtension, AlertCertificateUnobtainable, AlertUnrecognisedName, AlertBadCertificateStatusResponse, AlertBadCertificateHashValue, AlertUnknownPSKIdentity, AlertCertificateRequired, AlertNoApplicationProtocol, AlertUnknown, CertSCTMalformed, CertSCTInvalidSignature, CertSCTTimestampInFuture, CertSCTUnsupportedVersion, CertSCTUnknownLog,
}

Variants

Ok
Io
NullParameter
InvalidDnsNameError
Panic
CertificateParseError
PrivateKeyParseError
InsufficientSize
NotFound
InvalidParameter
UnexpectedEof
PlaintextEmpty
CorruptMessage
NoCertificatesPresented
DecryptError
FailedToGetCurrentTime
FailedToGetRandomBytes
HandshakeNotComplete
PeerSentOversizedRecord
NoApplicationProtocol
BadMaxFragmentSize
UnsupportedNameType
EncryptError
CertInvalidEncoding
CertInvalidSignatureType
CertInvalidSignature
CertInvalidData
PeerIncompatibleError
PeerMisbehavedError
InappropriateMessage
InappropriateHandshakeMessage
CorruptMessagePayload
General
AlertCloseNotify
AlertUnexpectedMessage
AlertBadRecordMac
AlertDecryptionFailed
AlertRecordOverflow
AlertDecompressionFailure
AlertHandshakeFailure
AlertNoCertificate
AlertBadCertificate
AlertUnsupportedCertificate
AlertCertificateRevoked
AlertCertificateExpired
AlertCertificateUnknown
AlertIllegalParameter
AlertUnknownCA
AlertAccessDenied
AlertDecodeError
AlertDecryptError
AlertExportRestriction
AlertProtocolVersion
AlertInsufficientSecurity
AlertInternalError
AlertInappropriateFallback
AlertUserCanceled
AlertNoRenegotiation
AlertMissingExtension
AlertUnsupportedExtension
AlertCertificateUnobtainable
AlertUnrecognisedName
AlertBadCertificateStatusResponse
AlertBadCertificateHashValue
AlertUnknownPSKIdentity
AlertCertificateRequired
AlertNoApplicationProtocol
AlertUnknown
CertSCTMalformed
CertSCTInvalidSignature
CertSCTTimestampInFuture
CertSCTUnsupportedVersion
CertSCTUnknownLog

Implementations

After a rustls function returns an error, you may call this to get a pointer to a buffer containing a detailed error message. The contents of the error buffer will be out_n bytes long, UTF-8 encoded, and not NUL-terminated.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.