Struct tokio_proto::TcpClient[][src]

pub struct TcpClient<Kind, P> { /* fields omitted */ }

Builds client connections to external services.

To connect to a service, you need a client protocol implementation; see the crate documentation for guidance.

At the moment, this builder offers minimal configuration, but more will be added over time.

Methods

impl<Kind, P> TcpClient<Kind, P> where
    P: BindClient<Kind, TcpStream>, 
[src]

Create a builder for the given client protocol.

To connect to a service, you need a client protocol implementation; see the crate documentation for guidance.

Establish a connection to the given address.

Return value

Returns a future for the establishment of the connection. When the future completes, it yields an instance of Service for interacting with the server.

Trait Implementations

impl<Kind: Debug, P: Debug> Debug for TcpClient<Kind, P>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<Kind, P> Send for TcpClient<Kind, P> where
    Kind: Send,
    P: Send + Sync

impl<Kind, P> Sync for TcpClient<Kind, P> where
    Kind: Sync,
    P: Send + Sync