[−][src]Trait tsukuyomi_server::Acceptor
A trait that represents the conversion of asynchronous I/Os.
Typically, the implementors of this trait establish a TLS session.
Associated Types
type Conn: AsyncRead + AsyncWrite
type Error
type Accept: Future<Item = Self::Conn, Error = Self::Error>
Required methods
Loading content...Implementations on Foreign Types
impl<T> Acceptor<T> for () where
T: AsyncRead + AsyncWrite,
[src]
impl<T> Acceptor<T> for () where
T: AsyncRead + AsyncWrite,
type Conn = T
type Error = Error
type Accept = FutureResult<Self::Conn, Self::Error>
fn accept(&self, io: T) -> Self::Accept
[src]
fn accept(&self, io: T) -> Self::Accept
Implementors
impl<F, T, R> Acceptor<T> for F where
F: Fn(T) -> R,
R: IntoFuture,
R::Item: AsyncRead + AsyncWrite,
[src]
impl<F, T, R> Acceptor<T> for F where
F: Fn(T) -> R,
R: IntoFuture,
R::Item: AsyncRead + AsyncWrite,