pub enum HandshakeError<S> {
Failure(Error),
Interrupted(MidHandshakeSslStream<S>),
}
Expand description
An error or intermediate state after a TLS handshake attempt.
Variants§
Failure(Error)
The handshake failed.
Interrupted(MidHandshakeSslStream<S>)
The handshake was interrupted midway through.
Trait Implementations§
Source§impl<S: Debug> Debug for HandshakeError<S>
impl<S: Debug> Debug for HandshakeError<S>
Auto Trait Implementations§
impl<S> Freeze for HandshakeError<S>
impl<S> RefUnwindSafe for HandshakeError<S>where
S: RefUnwindSafe,
impl<S> Send for HandshakeError<S>where
S: Send,
impl<S> Sync for HandshakeError<S>where
S: Sync,
impl<S> Unpin for HandshakeError<S>where
S: Unpin,
impl<S> UnwindSafe for HandshakeError<S>where
S: UnwindSafe,
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