[][src]Enum hyper_openssl::MaybeHttpsStream

pub enum MaybeHttpsStream<T> {
    Http(T),
    Https(SslStream<T>),
}

A stream which may be wrapped with TLS.

Variants

Http(T)

A raw HTTP stream.

Https(SslStream<T>)

An SSL-wrapped HTTP stream.

Trait Implementations

impl<T> AsyncRead for MaybeHttpsStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

impl<T> AsyncWrite for MaybeHttpsStream<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

impl<T> Connection for MaybeHttpsStream<T> where
    T: Connection
[src]

Auto Trait Implementations

impl<T> Send for MaybeHttpsStream<T> where
    T: Send

impl<T> Sync for MaybeHttpsStream<T> where
    T: Sync

impl<T> Unpin for MaybeHttpsStream<T> where
    T: Unpin

impl<T> UnwindSafe for MaybeHttpsStream<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for MaybeHttpsStream<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]