Skip to main content

SpawnExt2

Trait SpawnExt2 

Source
pub trait SpawnExt2<T1, T2>: ParameterizedSpawn {
    // Required method
    fn spawn<'a>(
        &mut self,
        a: T1,
        b: T2,
    ) -> Result<Self::Output<'a>, Self::Error>;
}

Required Methods§

Source

fn spawn<'a>(&mut self, a: T1, b: T2) -> Result<Self::Output<'a>, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, T1, T2> SpawnExt2<T1, T2> for T
where T: for<'a> ParameterizedSpawn<Input<'a> = (T1, T2)>,