Skip to main content

SpawnExt1

Trait SpawnExt1 

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

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T, T1> SpawnExt1<T1> for T
where T: ParameterizedSpawn<T1>,