Struct fui_system::Dispatcher
source · [−]pub struct Dispatcher { /* private fields */ }
Expand description
Allows to communicate with a message loop from the same thread.
Implementations
sourceimpl Dispatcher
impl Dispatcher
sourcepub fn post_func_any_thread<F>(&self, func: F) where
F: FnOnce() + Send + 'static,
pub fn post_func_any_thread<F>(&self, func: F) where
F: FnOnce() + Send + 'static,
Post function to be executed from the message loop.
sourcepub unsafe fn post_func_same_thread<F>(&self, func: F) where
F: FnOnce() + 'static,
pub unsafe fn post_func_same_thread<F>(&self, func: F) where
F: FnOnce() + 'static,
Post function to be executed from the message loop.
Auto Trait Implementations
impl RefUnwindSafe for Dispatcher
impl !Send for Dispatcher
impl !Sync for Dispatcher
impl Unpin for Dispatcher
impl UnwindSafe for Dispatcher
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more