Struct amy::Poller
[−]
[src]
pub struct Poller { /* fields omitted */ }
A Poller is an abstraction around a kernel I/O poller. Kernel pollers are platform specific.
A Poller is tied to a Registrar of the same type. The registrar allows registering file descriptors with the poller, while the poller waits for read or write events on those file descriptors.
Methods
impl Poller
[src]
fn new() -> Result<Poller>
fn get_registrar(&self) -> Registrar
Return a Registrar that can be used to register Sockets with a Poller.
Registrars are cloneable and can be used on a different thread from the Poller.
fn wait(&mut self, timeout_ms: usize) -> Result<Vec<Notification>>
Wait for notifications from the Poller