[][src]Type Definition cord_client::Client

type Client = ClientConn<SplitSink<Framed<TcpStream, Codec>, Message>>;

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.