Type Alias async_tungstenite::async_std::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(TcpStream),
    Tls(TlsStream<TcpStream>),
}

Variants§

§

Plain(TcpStream)

Unencrypted socket stream.

§

Tls(TlsStream<TcpStream>)

Encrypted socket stream.