Enum native_tls::HandshakeError [−][src]
pub enum HandshakeError<S> { Failure(Error), WouldBlock(MidHandshakeTlsStream<S>), }
An error returned from ClientBuilder::handshake
.
Variants
Failure(Error)
A fatal error.
WouldBlock(MidHandshakeTlsStream<S>)
A stream interrupted midway through the handshake process due to a
WouldBlock
error.
Note that this is not a fatal error and it should be safe to call
handshake
at a later time once the stream is ready to perform I/O
again.
Trait Implementations
impl<S: Debug> Debug for HandshakeError<S>
[src]
impl<S: Debug> Debug for HandshakeError<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S> Error for HandshakeError<S> where
S: Any + Debug,
[src]
impl<S> Error for HandshakeError<S> where
S: Any + Debug,
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<S> Display for HandshakeError<S> where
S: Any + Debug,
[src]
impl<S> Display for HandshakeError<S> where
S: Any + Debug,
Auto Trait Implementations
impl<S> Send for HandshakeError<S> where
S: Send,
impl<S> Send for HandshakeError<S> where
S: Send,
impl<S> Sync for HandshakeError<S> where
S: Sync,
impl<S> Sync for HandshakeError<S> where
S: Sync,