[][src]Enum native_tls::HandshakeError

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> Display for HandshakeError<S> where
    S: Any + Debug
[src]

impl<S: Debug> Debug for HandshakeError<S>[src]

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

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

fn type_id(&self) -> TypeId where
    Self: 'static, 
1.34.0
[src]

Gets the TypeId of self

Auto Trait Implementations

impl<S> Send for HandshakeError<S> where
    S: Send

impl<S> Sync for HandshakeError<S> where
    S: Sync

Blanket Implementations

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

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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.