[][src]Enum tls_api::HandshakeError

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

An error returned from ClientBuilder::handshake.

Variants

Failure(Error)

A fatal error.

Interrupted(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]

Auto Trait Implementations

impl<S> Send for HandshakeError<S>

impl<S> Sync for HandshakeError<S>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.