Enum InvalidMessage
#[non_exhaustive]pub enum InvalidMessage {
Show 28 variants
CertificatePayloadTooLarge,
HandshakePayloadTooLarge,
InvalidCcs,
InvalidContentType,
InvalidCertificateStatusType,
InvalidCertRequest,
InvalidDhParams,
InvalidEmptyPayload,
InvalidKeyUpdate,
InvalidServerName,
MessageTooLarge,
MessageTooShort,
MissingData(&'static str),
MissingKeyExchange,
NoSignatureSchemes,
TrailingData(&'static str),
UnexpectedMessage(&'static str),
UnknownProtocolVersion,
UnsupportedCompression,
UnsupportedCurveType,
UnsupportedKeyExchangeAlgorithm(KeyExchangeAlgorithm),
EmptyTicketValue,
IllegalEmptyList(&'static str),
IllegalEmptyValue,
DuplicateExtension(u16),
PreSharedKeyIsNotFinalExtension,
UnknownHelloRetryRequestExtension,
UnknownCertificateExtension,
}
Expand description
A corrupt TLS message payload that resulted in an error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CertificatePayloadTooLarge
A certificate payload exceeded rustls’s 64KB limit
HandshakePayloadTooLarge
An advertised message was larger then expected.
InvalidCcs
The peer sent us a syntactically incorrect ChangeCipherSpec payload.
InvalidContentType
An unknown content type was encountered during message decoding.
InvalidCertificateStatusType
A peer sent an invalid certificate status type
InvalidCertRequest
Context was incorrectly attached to a certificate request during a handshake.
InvalidDhParams
A peer’s DH params could not be decoded
InvalidEmptyPayload
A message was zero-length when its record kind forbids it.
InvalidKeyUpdate
A peer sent an unexpected key update request.
InvalidServerName
A peer’s server name could not be decoded
MessageTooLarge
A TLS message payload was larger then allowed by the specification.
MessageTooShort
Message is shorter than the expected length
MissingData(&'static str)
Missing data for the named handshake payload value
MissingKeyExchange
A peer did not advertise its supported key exchange groups.
NoSignatureSchemes
A peer sent an empty list of signature schemes
TrailingData(&'static str)
Trailing data found for the named handshake payload value
UnexpectedMessage(&'static str)
A peer sent an unexpected message type.
UnknownProtocolVersion
An unknown TLS protocol was encountered during message decoding.
UnsupportedCompression
A peer sent a non-null compression method.
UnsupportedCurveType
A peer sent an unknown elliptic curve type.
UnsupportedKeyExchangeAlgorithm(KeyExchangeAlgorithm)
A peer sent an unsupported key exchange algorithm.
EmptyTicketValue
A server sent an empty ticket
IllegalEmptyList(&'static str)
A peer sent an empty list of items, but a non-empty list is required.
The argument names the context.
IllegalEmptyValue
A peer sent an empty value, but a non-empty value is required.
DuplicateExtension(u16)
A peer sent a message where a given extension type was repeated
A peer sent a message with a PSK offer extension in wrong position
UnknownHelloRetryRequestExtension
A server sent a HelloRetryRequest with an unknown extension
UnknownCertificateExtension
The peer sent a TLS1.3 Certificate with an unknown extension
Trait Implementations§
§impl Clone for InvalidMessage
impl Clone for InvalidMessage
§fn clone(&self) -> InvalidMessage
fn clone(&self) -> InvalidMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for InvalidMessage
impl Debug for InvalidMessage
§impl From<InvalidMessage> for AlertDescription
impl From<InvalidMessage> for AlertDescription
§fn from(e: InvalidMessage) -> AlertDescription
fn from(e: InvalidMessage) -> AlertDescription
§impl From<InvalidMessage> for Error
impl From<InvalidMessage> for Error
§fn from(e: InvalidMessage) -> Error
fn from(e: InvalidMessage) -> Error
§impl PartialEq for InvalidMessage
impl PartialEq for InvalidMessage
impl Copy for InvalidMessage
impl StructuralPartialEq for InvalidMessage
Auto Trait Implementations§
impl Freeze for InvalidMessage
impl RefUnwindSafe for InvalidMessage
impl Send for InvalidMessage
impl Sync for InvalidMessage
impl Unpin for InvalidMessage
impl UnwindSafe for InvalidMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more