#[non_exhaustive]pub enum InvalidMessage {
InvalidContentType,
InvalidKeyUpdate,
MessageTooLarge,
MessageTooShort,
UnexpectedMessage(&'static str),
}
Expand description
A corrupt TLS message payload that resulted in an error.
(Copied from rustls)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidContentType
An unknown content type was encountered during message decoding.
InvalidKeyUpdate
A peer sent an unexpected key update request.
MessageTooLarge
A TLS message payload was larger then allowed by the specification.
MessageTooShort
Message is shorter than the expected length
UnexpectedMessage(&'static str)
A peer sent an unexpected message type.
Trait Implementations§
Source§impl Clone for InvalidMessage
impl Clone for InvalidMessage
Source§fn clone(&self) -> InvalidMessage
fn clone(&self) -> InvalidMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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(error: InvalidMessage) -> Self
fn from(error: InvalidMessage) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more