pub struct LocalSpawner { /* private fields */ }
Trait Implementations§
Source§impl Clone for LocalSpawner
impl Clone for LocalSpawner
Source§fn clone(&self) -> LocalSpawner
fn clone(&self) -> LocalSpawner
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 moreSource§impl Debug for LocalSpawner
impl Debug for LocalSpawner
Source§impl LocalSpawn for LocalSpawner
impl LocalSpawn for LocalSpawner
Source§fn spawn_local_obj(
&self,
future: LocalFutureObj<'static, ()>,
) -> Result<(), SpawnError>
fn spawn_local_obj( &self, future: LocalFutureObj<'static, ()>, ) -> Result<(), SpawnError>
Spawns a future that will be run to completion. Read more
Source§fn status_local(&self) -> Result<(), SpawnError>
fn status_local(&self) -> Result<(), SpawnError>
Determines whether the executor is able to spawn new tasks. Read more
Source§impl LocalSpawnWithId for LocalSpawner
impl LocalSpawnWithId for LocalSpawner
fn spawn_local_obj_with_id( &self, future: LocalFutureObj<'static, ()>, ) -> Result<usize, SpawnError>
Source§impl Spawn for LocalSpawner
impl Spawn for LocalSpawner
Source§impl SpawnWithId for LocalSpawner
impl SpawnWithId for LocalSpawner
fn spawn_obj_with_id( &self, future: FutureObj<'static, ()>, ) -> Result<usize, SpawnError>
Auto Trait Implementations§
impl Freeze for LocalSpawner
impl !RefUnwindSafe for LocalSpawner
impl !Send for LocalSpawner
impl !Sync for LocalSpawner
impl Unpin for LocalSpawner
impl !UnwindSafe for LocalSpawner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Sp> LocalSpawnExt for Spwhere
Sp: LocalSpawn + ?Sized,
impl<Sp> LocalSpawnExt for Spwhere
Sp: LocalSpawn + ?Sized,
Source§fn spawn_local<Fut>(&self, future: Fut) -> Result<(), SpawnError>
fn spawn_local<Fut>(&self, future: Fut) -> Result<(), SpawnError>
Spawns a task that polls the given future with output
()
to
completion. Read moreSource§fn spawn_local_with_handle<Fut>(
&self,
future: Fut,
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError>where
Fut: Future + 'static,
fn spawn_local_with_handle<Fut>(
&self,
future: Fut,
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError>where
Fut: Future + 'static,
Spawns a task that polls the given future to completion and returns a
future that resolves to the spawned future’s output. Read more
Source§impl<Sp> LocalSpawnWithIdExt for Spwhere
Sp: LocalSpawnWithId + ?Sized,
impl<Sp> LocalSpawnWithIdExt for Spwhere
Sp: LocalSpawnWithId + ?Sized,
Source§fn spawn_local<Fut>(&self, future: Fut) -> Result<usize, SpawnError>
fn spawn_local<Fut>(&self, future: Fut) -> Result<usize, SpawnError>
Spawns a task that polls the given future with output
()
to
completion. Read moreSource§fn spawn_local_with_handle<Fut>(
&self,
future: Fut,
) -> Result<(usize, RemoteHandle<Fut::Output>), SpawnError>where
Fut: Future + 'static,
fn spawn_local_with_handle<Fut>(
&self,
future: Fut,
) -> Result<(usize, RemoteHandle<Fut::Output>), SpawnError>where
Fut: Future + 'static,
Spawns a task that polls the given future to completion and returns a
future that resolves to the spawned future’s output. Read more
Source§impl<Sp> SpawnExt for Sp
impl<Sp> SpawnExt for Sp
Source§fn spawn<Fut>(&self, future: Fut) -> Result<(), SpawnError>
fn spawn<Fut>(&self, future: Fut) -> Result<(), SpawnError>
Spawns a task that polls the given future with output
()
to
completion. Read moreSource§fn spawn_with_handle<Fut>(
&self,
future: Fut,
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError>
fn spawn_with_handle<Fut>( &self, future: Fut, ) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError>
Spawns a task that polls the given future to completion and returns a
future that resolves to the spawned future’s output. Read more
Source§impl<Sp> SpawnWithIdExt for Spwhere
Sp: SpawnWithId + ?Sized,
impl<Sp> SpawnWithIdExt for Spwhere
Sp: SpawnWithId + ?Sized,
Source§fn spawn<Fut>(&self, future: Fut) -> Result<usize, SpawnError>
fn spawn<Fut>(&self, future: Fut) -> Result<usize, SpawnError>
Spawns a task that polls the given future with output
()
to
completion. Read moreSource§fn spawn_with_handle<Fut>(
&self,
future: Fut,
) -> Result<(usize, RemoteHandle<Fut::Output>), SpawnError>
fn spawn_with_handle<Fut>( &self, future: Fut, ) -> Result<(usize, RemoteHandle<Fut::Output>), SpawnError>
Spawns a task that polls the given future to completion and returns a
future that resolves to the spawned future’s output. Read more