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]
pub fn new(protocol: T, connector: TlsConnector, hostname: &str) -> Client<T>
[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]
T: ClientProto<TlsStream<I>>,
I: Read + Write + 'static,
type Request = T::Request
Request messages.
type Response = T::Response
Response messages.
type Transport = T::Transport
The message transport, which works with I/O objects of type T
. Read more
type BindTransport = ClientPipelineBind<T, I>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: I) -> Self::BindTransport
[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]
T: ClientProto<TlsStream<I>>,
I: Read + Write + 'static,
type Request = T::Request
Request messages.
type Response = T::Response
Response messages.
type Transport = T::Transport
The message transport, which usually take T
as a parameter. Read more
type BindTransport = ClientMultiplexBind<T, I>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: I) -> Self::BindTransport
[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]
T: ClientProto<TlsStream<I>>,
I: Read + Write + 'static,
type Request = T::Request
The type of request headers.
type RequestBody = T::RequestBody
The type of request body chunks.
type Response = T::Response
The type of response headers.
type ResponseBody = T::ResponseBody
The type of response body chunks.
type Error = T::Error
The type of error frames.
type Transport = T::Transport
The frame transport, which usually take T
as a parameter.
type BindTransport = ClientStreamingPipelineBind<T, I>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: I) -> Self::BindTransport
[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]
T: ClientProto<TlsStream<I>>,
I: Read + Write + 'static,
type Request = T::Request
Request headers.
type RequestBody = T::RequestBody
Request body chunks.
type Response = T::Response
Response headers.
type ResponseBody = T::ResponseBody
Response body chunks.
type Error = T::Error
Errors, which are used both for error frames and for the service itself.
type Transport = T::Transport
The frame transport, which usually take T
as a parameter.
type BindTransport = ClientStreamingMultiplexBind<T, I>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: I) -> Self::BindTransport
[src]
Build a transport from the given I/O object, using self
for any configuration. Read more