[−][src]Trait async_executors::LocalSpawnHandle
This is supported on
feature="spawn_handle"
only.This is similar to SpawnHandle
except that it allows spawning !Send
futures. Please see
the docs on SpawnHandle
.
Required methods
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
This is supported on
feature="spawn_handle"
only.Spawn a future and return a JoinHandle
that can be awaited for the output of the future.
Implementations on Foreign Types
impl<T: ?Sized, Out> LocalSpawnHandle<Out> for Box<T> where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<T: ?Sized, Out> LocalSpawnHandle<Out> for Arc<T> where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<T: ?Sized, Out> LocalSpawnHandle<Out> for Rc<T> where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<'_, T, Out> LocalSpawnHandle<Out> for &'_ T where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<'_, T, Out> LocalSpawnHandle<Out> for &'_ mut T where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<T, Out> LocalSpawnHandle<Out> for Instrumented<T> where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<T, Out> LocalSpawnHandle<Out> for WithDispatch<T> where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<Out: 'static> LocalSpawnHandle<Out> for LocalSpawner
[src]
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
Implementors
impl<Out: 'static> LocalSpawnHandle<Out> for Bindgen
[src]
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
impl<Out: 'static> LocalSpawnHandle<Out> for TokioCt
[src]
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>