Trait conch_runtime::spawn::SpawnBoxed [] [src]

pub trait SpawnBoxed<E: ?Sized> {
    type Error;
    fn spawn_boxed<'a>(
        &'a self,
        env: &E
    ) -> BoxSpawnEnvFuture<'a, E, Self::Error>
    where
        E: 'a
; }

A trait for spawning commands (without moving ownership) into boxed futures. Largely useful for having spawnable trait objects.

Associated Types

The type of error that a future will resolve with if it fails in a normal fashion.

Required Methods

Identical to Spawn::spawn but does not move self and returns boxed futures.

Implementors