Trait events_loop::EventsLoopProxy [−][src]
pub trait EventsLoopProxy: Send { fn wakeup(&self) -> Result<(), EventsLoopClosed>; fn clone(&self) -> Box<EventsLoopProxy>; }
Used to wake up the EventsLoop
from another thread.
Required Methods
fn wakeup(&self) -> Result<(), EventsLoopClosed>
Wake up the EventsLoop
from which this proxy was created.
This causes the EventsLoop
to emit an Awakened
event.
Returns an Err
if the associated EventsLoop
no longer exists.