[][src]Trait async_executors::LocalSpawnHandle

pub trait LocalSpawnHandle<Out: 'static> {
    fn spawn_handle_local_obj(
        &self,
        future: LocalFutureObj<'static, Out>
    ) -> Result<JoinHandle<Out>, SpawnError>; }
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>

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.

Loading content...

Implementations on Foreign Types

impl<T: ?Sized, Out> LocalSpawnHandle<Out> for Box<T> where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<T: ?Sized, Out> LocalSpawnHandle<Out> for Arc<T> where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<T: ?Sized, Out> LocalSpawnHandle<Out> for Rc<T> where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<'_, T, Out> LocalSpawnHandle<Out> for &'_ T where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<'_, T, Out> LocalSpawnHandle<Out> for &'_ mut T where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<T, Out> LocalSpawnHandle<Out> for Instrumented<T> where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<T, Out> LocalSpawnHandle<Out> for WithDispatch<T> where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

impl<Out: 'static> LocalSpawnHandle<Out> for LocalSpawner[src]

Loading content...

Implementors

impl<Out: 'static> LocalSpawnHandle<Out> for Bindgen[src]

impl<Out: 'static> LocalSpawnHandle<Out> for TokioCt[src]

Loading content...