Type Alias async_tungstenite::tokio::tls::AutoStream

source ·
pub type AutoStream<S> = Stream<TokioAdapter<S>, TokioAdapter<TlsStream<S>>>;

Aliased Type§

enum AutoStream<S> {
    Plain(TokioAdapter<S>),
    Tls(TokioAdapter<TlsStream<S>>),
}

Variants§

§

Plain(TokioAdapter<S>)

Unencrypted socket stream.

§

Tls(TokioAdapter<TlsStream<S>>)

Encrypted socket stream.