Enum rustls_connector::HandshakeError
source · pub enum HandshakeError<S: Read + Send + Sync + Write + 'static> {
WouldBlock(Box<MidHandshakeTlsStream<S>>),
Failure(Error),
}
Expand description
An error returned while performing the handshake
Variants§
WouldBlock(Box<MidHandshakeTlsStream<S>>)
We hit WouldBlock during handshake. Note that this is not a critical failure, you should be able to call handshake again once the stream is ready to perform I/O.
Failure(Error)
We hit a critical failure.
Trait Implementations§
source§impl<S: Debug + Read + Send + Sync + Write + 'static> Error for HandshakeError<S>
impl<S: Debug + Read + Send + Sync + Write + 'static> Error for HandshakeError<S>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<S> !RefUnwindSafe for HandshakeError<S>
impl<S> Send for HandshakeError<S>
impl<S> Sync for HandshakeError<S>
impl<S> Unpin for HandshakeError<S>
impl<S> !UnwindSafe for HandshakeError<S>
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