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]

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.

Wait for notifications from the Poller