Type Alias async_tungstenite::tokio::ClientStream

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

Type alias for the stream type of the client_async() functions.

Aliased Type§

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

Variants§

§

Plain(TokioAdapter<S>)

Unencrypted socket stream.

§

Tls(TokioAdapter<TlsStream<S>>)

Encrypted socket stream.