Struct EventPort
gjio
pub struct EventPort { /* fields omitted */ }
Source of events from the outside world. Implements gj::EventPort.
gj::EventPort
impl EventPort
fn new() -> Result<EventPort, Error>
fn get_network(&self) -> Network
fn get_timer(&self) -> Timer
impl EventPort<Error> for EventPort
fn wait(&mut self) -> Result<(), Error>
Waits for an external event to arrive, blocking the thread if necessary.