[][src]Trait tsukuyomi_server::Acceptor

pub trait Acceptor<T> {
    type Conn: AsyncRead + AsyncWrite;
    type Error;
    type Accept: Future<Item = Self::Conn, Error = Self::Error>;
    fn accept(&self, io: T) -> Self::Accept;
}

A trait that represents the conversion of asynchronous I/Os.

Typically, the implementors of this trait establish a TLS session.

Associated Types

Loading content...

Required methods

Loading content...

Implementations on Foreign Types

impl<T> Acceptor<T> for () where
    T: AsyncRead + AsyncWrite
[src]

Loading content...

Implementors

impl<F, T, R> Acceptor<T> for F where
    F: Fn(T) -> R,
    R: IntoFuture,
    R::Item: AsyncRead + AsyncWrite
[src]

Loading content...