Struct tokio_tls::proto::Client [] [src]

pub struct Client<T> { /* fields omitted */ }

TLS client protocol wrapper.

This structure is a wrapper for other implementations of ClientProto in the tokio-proto crate. This structure will negotiate a TLS connection first and then delegate all further operations to the ClientProto implementation for the underlying type.

Methods

impl<T> Client<T>
[src]

[src]

Constructs a new TLS protocol which will delegate to the underlying protocol specified.

The connector provided will be used to configure the TLS connection. Further I/O will go through the negotiated TLS stream through the protocol specified.

Trait Implementations

impl<T, I> ClientProto<I> for Client<T> where
    T: ClientProto<TlsStream<I>>,
    I: Read + Write + 'static, 
[src]

Request messages.

Response messages.

The message transport, which works with I/O objects of type T. Read more

A future for initializing a transport from an I/O object. Read more

[src]

Build a transport from the given I/O object, using self for any configuration. Read more

impl<T, I> ClientProto<I> for Client<T> where
    T: ClientProto<TlsStream<I>>,
    I: Read + Write + 'static, 
[src]

Request messages.

Response messages.

The message transport, which usually take T as a parameter. Read more

A future for initializing a transport from an I/O object. Read more

[src]

Build a transport from the given I/O object, using self for any configuration. Read more

impl<T, I> ClientProto<I> for Client<T> where
    T: ClientProto<TlsStream<I>>,
    I: Read + Write + 'static, 
[src]

The type of request headers.

The type of request body chunks.

The type of response headers.

The type of response body chunks.

The type of error frames.

The frame transport, which usually take T as a parameter.

A future for initializing a transport from an I/O object. Read more

[src]

Build a transport from the given I/O object, using self for any configuration. Read more

impl<T, I> ClientProto<I> for Client<T> where
    T: ClientProto<TlsStream<I>>,
    I: Read + Write + 'static, 
[src]

Request headers.

Request body chunks.

Response headers.

Response body chunks.

Errors, which are used both for error frames and for the service itself.

The frame transport, which usually take T as a parameter.

A future for initializing a transport from an I/O object. Read more

[src]

Build a transport from the given I/O object, using self for any configuration. Read more