[][src]Enum solicit::http::client::tls::TlsConnectError

pub enum TlsConnectError {
    IoError(Error),
    SslError(SslError),
    Http2NotSupported(SslStream<TcpStream>),
}

An enum representing possible errors that can arise when trying to establish an HTTP/2 connection over TLS.

Variants

IoError(Error)

The variant corresponds to the underlying raw TCP connection returning an error.

SslError(SslError)

The variant corresponds to the TLS negotiation returning an error.

Http2NotSupported(SslStream<TcpStream>)

The variant corresponds to the case when the TLS connection is established, but the application protocol that was negotiated didn't end up being HTTP/2. It wraps the established SSL stream in order to allow the client to decide what to do with it (and the application protocol that was chosen).

Trait Implementations

impl Debug for TlsConnectError[src]

impl Display for TlsConnectError[src]

impl Error for TlsConnectError[src]

impl From<Error> for TlsConnectError[src]

impl From<SslError> for TlsConnectError[src]

impl HttpConnectError for TlsConnectError[src]

Auto Trait Implementations

impl !RefUnwindSafe for TlsConnectError

impl Send for TlsConnectError

impl Sync for TlsConnectError

impl Unpin for TlsConnectError

impl !UnwindSafe for TlsConnectError

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.