#[non_exhaustive]pub enum PeerMisbehaved {
IllegalMiddleboxChangeCipherSpec,
KeyEpochWithPendingFragment,
}
Expand description
The set of cases where we failed to make a connection because we thought the peer was misbehaving.
This is non_exhaustive
: we might add or stop using items here in minor
versions. We also don’t document what they mean. Generally a user of
rustls shouldn’t vary its behaviour on these error codes, and there is
nothing it can do to improve matters.
(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.
Trait Implementations§
Source§impl Clone for PeerMisbehaved
impl Clone for PeerMisbehaved
Source§fn clone(&self) -> PeerMisbehaved
fn clone(&self) -> PeerMisbehaved
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 PeerMisbehaved
impl Debug for PeerMisbehaved
Source§impl From<PeerMisbehaved> for Error
impl From<PeerMisbehaved> for Error
Source§fn from(error: PeerMisbehaved) -> Self
fn from(error: PeerMisbehaved) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PeerMisbehaved
impl PartialEq for PeerMisbehaved
impl StructuralPartialEq for PeerMisbehaved
Auto Trait Implementations§
impl Freeze for PeerMisbehaved
impl RefUnwindSafe for PeerMisbehaved
impl Send for PeerMisbehaved
impl Sync for PeerMisbehaved
impl Unpin for PeerMisbehaved
impl UnwindSafe for PeerMisbehaved
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