[][src]Trait tsukuyomi_server::Listener

pub trait Listener {
    type Conn: AsyncRead + AsyncWrite;
    type Error: Into<Box<dyn Error + Send + Sync + 'static>>;
    type Incoming: Stream<Item = Self::Conn, Error = Self::Error>;
    fn listen(self) -> Result<Self::Incoming, Self::Error>;
}

A trait that represents the low-level I/O.

Associated Types

Loading content...

Required methods

Creates a Stream of asynchronous I/Os.

Loading content...

Implementations on Foreign Types

impl Listener for SocketAddr
[src]

impl<'a> Listener for &'a SocketAddr
[src]

impl Listener for TcpListener
[src]

impl Listener for TcpListener
[src]

impl Listener for PathBuf
[src]

impl<'a> Listener for &'a PathBuf
[src]

impl<'a> Listener for &'a Path
[src]

impl Listener for UnixListener
[src]

impl Listener for UnixListener
[src]

Loading content...

Implementors

Loading content...