Trait mio_pool::Listener

source ·
pub trait Listener: AsRawFd + Sync + Send {
    type Connection: AsRawFd + Send;

    fn accept(&self) -> Result<Self::Connection>;
}
Expand description

Types that implement Listener are mio-pollable, and can accept new connections that are themselves mio-pollable.

Required Associated Types§

The type of connections yielded by accept.

Required Methods§

Accept a new connection.

This method will only be called when mio::Ready::readable is raised for the Listener by a poll.

Implementations on Foreign Types§

Implementors§