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
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
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.