Trait vmm_vhost::connection::Listener
source · 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§
sourcefn accept(&mut self) -> Result<Option<Connection<FrontendReq>>>
fn accept(&mut self) -> Result<Option<Connection<FrontendReq>>>
Accept an incoming connection.
sourcefn set_nonblocking(&self, block: bool) -> Result<()>
fn set_nonblocking(&self, block: bool) -> Result<()>
Change blocking status on the listener.
Object Safety§
This trait is not object safe.