#[non_exhaustive]pub enum RecordError {
Show 16 variants
ProfileMismatch,
Truncated,
LengthOverflow,
RecordOverflow,
EmptyFragment,
UnsupportedContentType,
HeartbeatRejected,
UnprotectedApplicationData,
InvalidCiphertextType,
InvalidCiphertextVersion,
InvalidPlaintextVersion,
InvalidPlaintextEpoch,
InvalidUnifiedHeader,
ConnectionIdMismatch,
ConnectionIdTooLong,
InsufficientOutput,
}Expand description
A closed, payload-free TLS or DTLS record-framing failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProfileMismatch
The selected parser does not support that protocol family.
Truncated
The complete fixed or declared record was not available.
LengthOverflow
A checked length computation overflowed.
RecordOverflow
A record exceeded its profile’s fixed maximum.
EmptyFragment
A record required a non-empty fragment.
UnsupportedContentType
The content type is known but unavailable in this profile.
HeartbeatRejected
RFC 6520 Heartbeat is deliberately excluded.
UnprotectedApplicationData
TLS 1.3 application data was presented in an unprotected wire record.
InvalidCiphertextType
A protected TLS 1.3 record did not use outer type 23.
InvalidCiphertextVersion
A protected TLS 1.3 record did not use legacy version 0x0303.
InvalidPlaintextVersion
Generated TLS 1.3 plaintext did not use an allowed compatibility value.
InvalidPlaintextEpoch
A DTLS 1.3 plaintext record used a nonzero epoch.
InvalidUnifiedHeader
A DTLS 1.3 unified header had invalid fixed bits or layout.
ConnectionIdMismatch
DTLS 1.3 CID presence differed from the selected connection context.
ConnectionIdTooLong
A caller-provided connection identifier length exceeded one byte.
InsufficientOutput
The caller output buffer was too small; no byte was changed.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
Source§fn clone(&self) -> RecordError
fn clone(&self) -> RecordError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more