[][src]Enum async_tungstenite::stream::Stream

pub enum Stream<S, T> {
    Plain(S),
    Tls(T),
}

Stream, either plain TCP or TLS.

Variants

Plain(S)

Unencrypted socket stream.

Tls(T)

Encrypted socket stream.

Trait Implementations

impl<S: AsyncRead + Unpin, T: AsyncRead + Unpin> AsyncRead for Stream<S, T>[src]

impl<S: AsyncWrite + Unpin, T: AsyncWrite + Unpin> AsyncWrite for Stream<S, T>[src]

Auto Trait Implementations

impl<S, T> RefUnwindSafe for Stream<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<S, T> Send for Stream<S, T> where
    S: Send,
    T: Send
[src]

impl<S, T> Sync for Stream<S, T> where
    S: Sync,
    T: Sync
[src]

impl<S, T> Unpin for Stream<S, T> where
    S: Unpin,
    T: Unpin
[src]

impl<S, T> UnwindSafe for Stream<S, T> where
    S: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

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> ReadExt for T where
    T: AsyncRead + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WriteExt for T where
    T: AsyncWrite + ?Sized
[src]