pub trait Listener: Sized {
    // Required methods
    fn accept(&mut self) -> Result<Option<Connection<FrontendReq>>>;
    fn set_nonblocking(&self, block: bool) -> Result<()>;
}
Expand description

Listener for accepting connections.

Required Methods§

source

fn accept(&mut self) -> Result<Option<Connection<FrontendReq>>>

Accept an incoming connection.

source

fn set_nonblocking(&self, block: bool) -> Result<()>

Change blocking status on the listener.

Object Safety§

This trait is not object safe.

Implementors§