Client

Type Alias Client 

Source
pub type Client = ClientConn<SplitSink<Framed<TcpStream, Codec>, Message>>;
Expand description

The Client type alias defines the Sink type for communicating with a Broker.

This type alias should be used for normal operation in favour of consuming ClientConn directly. This type is instantiated using Client::connect.

The reason for this alias’ existence is so that the Sink can be overridden for testing.

Aliased Type§

pub struct Client { /* private fields */ }