Trait gj::EventPort
[−]
[src]
pub trait EventPort<E> { fn wait(&mut self) -> Result<(), E>; }
Interface between an EventLoop
and events originating from outside of the loop's thread.
Needed in Promise::wait()
.
Required Methods
fn wait(&mut self) -> Result<(), E>
Waits for an external event to arrive, blocking the thread if necessary.
Implementors
impl<E: Clone> EventPort<E> for ClosedEventPort<E>