Type Alias 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§

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

Variants§

§

Plain(TokioAdapter<S>)

Unencrypted socket stream.

§

Tls(TokioAdapter<TlsStream<S>>)

Encrypted socket stream.