Struct tokio_tls::proto::Server
[−]
[src]
pub struct Server<T> { /* fields omitted */ }
TLS server protocol wrapper.
This structure is a wrapper for other implementations of ServerProto
in
the tokio-proto
crate. This structure will negotiate a TLS connection
first and then delegate all further operations to the ServerProto
implementation for the underlying type.
Methods
impl<T> Server<T>
[src]
pub fn new(protocol: T, acceptor: TlsAcceptor) -> Server<T>
[src]
Constructs a new TLS protocol which will delegate to the underlying
protocol
specified.
The acceptor
provided will be used to accept TLS connections. All new
connections will go through the TLS acceptor first and then further I/O
will go through the negotiated TLS stream through the protocol
specified.
Trait Implementations
impl<T, I> ServerProto<I> for Server<T> where
T: ServerProto<TlsStream<I>>,
I: Read + Write + 'static,
[src]
T: ServerProto<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 = ServerPipelineBind<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> ServerProto<I> for Server<T> where
T: ServerProto<TlsStream<I>>,
I: Read + Write + 'static,
[src]
T: ServerProto<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 = ServerMultiplexBind<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> ServerProto<I> for Server<T> where
T: ServerProto<TlsStream<I>>,
I: Read + Write + 'static,
[src]
T: ServerProto<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 = ServerStreamingPipelineBind<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> ServerProto<I> for Server<T> where
T: ServerProto<TlsStream<I>>,
I: Read + Write + 'static,
[src]
T: ServerProto<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 = ServerStreamingMultiplexBind<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