pub struct DispatcherHandle { /* private fields */ }Expand description
Created by calling Dispatcher::get_handle.
Implementations§
Source§impl DispatcherHandle
impl DispatcherHandle
Sourcepub fn spawn<F>(&mut self, future: F)
pub fn spawn<F>(&mut self, future: F)
Enqueue a future to be ran when Dispatcher::run is called.
If you want an output value from the future, use DispatcherHandle::dispatch
Trait Implementations§
Source§impl Clone for DispatcherHandle
impl Clone for DispatcherHandle
Source§fn clone(&self) -> DispatcherHandle
fn clone(&self) -> DispatcherHandle
Returns a duplicate 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 Freeze for DispatcherHandle
impl RefUnwindSafe for DispatcherHandle
impl Send for DispatcherHandle
impl Sync for DispatcherHandle
impl Unpin for DispatcherHandle
impl UnwindSafe for DispatcherHandle
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