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.
Trait Implementations§
source§impl Clone for EventsLoopProxy
impl Clone for EventsLoopProxy
source§fn clone(&self) -> EventsLoopProxy
fn clone(&self) -> EventsLoopProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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