Enum tungstenite::stream::Stream[][src]

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: Debug, T: Debug> Debug for Stream<S, T>[src]

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

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

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

Auto Trait Implementations

impl<S, T> RefUnwindSafe for Stream<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<S, T> Send for Stream<S, T> where
    S: Send,
    T: Send

impl<S, T> Sync for Stream<S, T> where
    S: Sync,
    T: Sync

impl<S, T> Unpin for Stream<S, T> where
    S: Unpin,
    T: Unpin

impl<S, T> UnwindSafe for Stream<S, T> where
    S: UnwindSafe,
    T: UnwindSafe

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<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

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

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>, 
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]