Type Alias async_tungstenite::tokio::ConnectStream

source ·
pub type ConnectStream = ClientStream<TcpStream>;
Expand description

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

Aliased Type§

enum ConnectStream {
    Plain(TokioAdapter<TcpStream>),
    Tls(TokioAdapter<TlsStream<TcpStream>>),
}

Variants§

§

Plain(TokioAdapter<TcpStream>)

Unencrypted socket stream.

§

Tls(TokioAdapter<TlsStream<TcpStream>>)

Encrypted socket stream.