Type Alias async_tungstenite::tokio::tls::MaybeTlsStream

source ·
pub type MaybeTlsStream<S> = Stream<TokioAdapter<S>, TokioAdapter<TlsStream<S>>>;
Expand description

A stream that might be protected with TLS.

Aliased Type§

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

Variants§

§

Plain(TokioAdapter<S>)

Unencrypted socket stream.

§

Tls(TokioAdapter<TlsStream<S>>)

Encrypted socket stream.