Struct glutin::EventsLoopProxy
source · pub struct EventsLoopProxy { /* private fields */ }
Expand description
Used to wake up the EventsLoop
from another thread.
Implementations§
source§impl EventsLoopProxy
impl EventsLoopProxy
sourcepub fn wakeup(&self) -> Result<(), EventsLoopClosed>
pub 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.
Auto Trait Implementations§
impl RefUnwindSafe for EventsLoopProxy
impl Send for EventsLoopProxy
impl Sync for EventsLoopProxy
impl Unpin for EventsLoopProxy
impl UnwindSafe for EventsLoopProxy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more