Struct gj::ClosedEventPort [] [src]

pub struct ClosedEventPort<E: Clone>(pub E);

An event port that never emits any events. On wait() it returns the error it was constructed with.

Trait Implementations

impl<E: Clone> EventPort<E> for ClosedEventPort<E>
[src]

Waits for an external event to arrive, blocking the thread if necessary.