[][src]Enum rustls_connector::HandshakeError

pub enum HandshakeError<S: Read + Send + Sync + Write + 'static> {
    WouldBlock(MidHandshakeTlsStream<S>),
    Failure(Error),
}

An error returned while performing the handshake

Variants

WouldBlock(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

impl<S: Debug + Read + Send + Sync + Write + 'static> Debug for HandshakeError<S>[src]

impl<S: Debug + Read + Send + Sync + Write + 'static> Display for HandshakeError<S>[src]

impl<S: Debug + Read + Send + Sync + Write + 'static> Error for HandshakeError<S>[src]

impl<S: Debug + Read + Send + Sync + Write + 'static> From<Error> for HandshakeError<S>[src]

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> where
    S: Unpin

impl<S> !UnwindSafe for HandshakeError<S>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.