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
sourceimpl<S: Debug> Debug for HandshakeError<S>
impl<S: Debug> Debug for HandshakeError<S>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more