pub trait NonblockingHelp {
    // Required methods
    fn register_nonblocking_help(
        &self,
        _registry: &Registry,
        _token: Token
    ) -> Result<()>;
    fn nonblocking_help(&self) -> Result<()>;
}
Expand description

In order to provide nonblocking functionality (e.g. in the Uart trait), some transport backends may need help from the main mio event loop. This trait allows the transport to register its internal event sources with a poll registery used by the main loop, and the main loop will then be reponsible for calling nonblocking_help every time one of the transports internal sources become ready.

Required Methods§

source

fn register_nonblocking_help( &self, _registry: &Registry, _token: Token ) -> Result<()>

source

fn nonblocking_help(&self) -> Result<()>

Implementors§