#[non_exhaustive]pub enum TlsFailure {
Handshake,
HelloRefused,
Capacity,
Protocol,
OutputFull,
State,
}Expand description
What failed in a TLS engine.
assert_ne!(net_io::TlsFailure::Handshake, net_io::TlsFailure::HelloRefused);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.
Handshake
The handshake failed.
HelloRefused
The engine’s hello hook refused the ClientHello.
Capacity
The acceptor is at capacity.
Protocol
The peer broke the protocol.
OutputFull
The output buffer is too small.
State
The call is not valid in the session’s state.
Trait Implementations§
Source§impl Clone for TlsFailure
impl Clone for TlsFailure
impl Copy for TlsFailure
Source§impl Debug for TlsFailure
impl Debug for TlsFailure
impl Eq for TlsFailure
Source§impl PartialEq for TlsFailure
impl PartialEq for TlsFailure
impl StructuralPartialEq for TlsFailure
Auto Trait Implementations§
impl Freeze for TlsFailure
impl RefUnwindSafe for TlsFailure
impl Send for TlsFailure
impl Sync for TlsFailure
impl Unpin for TlsFailure
impl UnsafeUnpin for TlsFailure
impl UnwindSafe for TlsFailure
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