pub struct EventQueue { /* private fields */ }
Expand description
The struct to enqueue a closure from another thread
Implementations§
Source§impl EventQueue
impl EventQueue
Sourcepub fn queue_main<F: FnOnce() + 'static + Send>(&self, callback: F) -> bool
pub fn queue_main<F: FnOnce() + 'static + Send>(&self, callback: F) -> bool
Tries to enqueue the callback to event queue for the main thread
Returns false if the UI
is already dropped and unable to queue the event.
Auto Trait Implementations§
impl Freeze for EventQueue
impl RefUnwindSafe for EventQueue
impl Send for EventQueue
impl Sync for EventQueue
impl Unpin for EventQueue
impl UnwindSafe for EventQueue
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