[−][src]Trait reactor_trait::Reactor
A common interface for registering IO handles in a reactor.
Required methods
pub fn register(
&self,
socket: IOHandle
) -> Result<Box<dyn AsyncIOHandle + Send>>
[src]
&self,
socket: IOHandle
) -> Result<Box<dyn AsyncIOHandle + Send>>
Register a synchronous handle, returning an asynchronous one
#[must_use]pub fn sleep<'life0, 'async_trait>(
&'life0 self,
dur: Duration
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
dur: Duration
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Sleep for the given duration