Enum native_tls::HandshakeError [] [src]

pub enum HandshakeError<S> {
    Failure(Error),
    Interrupted(MidHandshakeTlsStream<S>),
}

An error returned from ClientBuilder::handshake.

Variants

A fatal error.

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]

[src]

Formats the value using the given formatter.

impl<S> Error for HandshakeError<S> where
    S: Any + Debug
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl<S> Display for HandshakeError<S> where
    S: Any + Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<S> From<HandshakeError<S>> for HandshakeError<S>
[src]

[src]

Performs the conversion.