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]

[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]

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> ServerProto<I> for Server<T> where
    T: ServerProto<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> ServerProto<I> for Server<T> where
    T: ServerProto<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

impl<T, I> ServerProto<I> for Server<T> where
    T: ServerProto<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