pub struct LocalDispatcherHandle { /* private fields */ }Expand description
Created by calling Dispatcher::get_handle_local.
Implementations§
Source§impl LocalDispatcherHandle
impl LocalDispatcherHandle
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 [LocalDispatcherHandle::dispatch]
Trait Implementations§
Source§impl Clone for LocalDispatcherHandle
impl Clone for LocalDispatcherHandle
Source§fn clone(&self) -> LocalDispatcherHandle
fn clone(&self) -> LocalDispatcherHandle
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 LocalDispatcherHandle
impl RefUnwindSafe for LocalDispatcherHandle
impl !Send for LocalDispatcherHandle
impl !Sync for LocalDispatcherHandle
impl Unpin for LocalDispatcherHandle
impl UnwindSafe for LocalDispatcherHandle
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