Enum rustls::error::InvalidMessage
source · #[non_exhaustive]pub enum InvalidMessage {
Show 20 variants
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),
}
Expand description
A corrupt TLS message payload that resulted in an error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
Trait Implementations§
source§impl Clone for InvalidMessage
impl Clone for InvalidMessage
source§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 moresource§impl Debug for InvalidMessage
impl Debug for InvalidMessage
source§impl From<InvalidMessage> for Error
impl From<InvalidMessage> for Error
source§fn from(e: InvalidMessage) -> Self
fn from(e: InvalidMessage) -> Self
source§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§
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)