Reactor

Trait Reactor 

Source
pub trait Reactor {
    // Required method
    fn register(
        &self,
        socket: IOHandle,
    ) -> Result<Box<dyn AsyncIOHandle + Send>>;
}
Expand description

A common interface for registering IO handles in a reactor.

Required Methods§

Source

fn register(&self, socket: IOHandle) -> Result<Box<dyn AsyncIOHandle + Send>>

Register a synchronous handle, returning an asynchronous one

Implementors§