Trait Task2

Source
pub trait Task2<T1, T2, O>: Debug {
    // Required method
    fn run<'async_trait>(
        self: Box<Self>,
        T1: T1,
        T2: T2,
    ) -> Pin<Box<dyn Future<Output = Result<O>> + Send + 'async_trait>>
       where Self: 'async_trait;

    // Provided methods
    fn name(&self) -> String { ... }
    fn color(&self) -> Option<Rgba> { ... }
}

Required Methods§

Source

fn run<'async_trait>( self: Box<Self>, T1: T1, T2: T2, ) -> Pin<Box<dyn Future<Output = Result<O>> + Send + 'async_trait>>
where Self: 'async_trait,

Provided Methods§

Source

fn name(&self) -> String

Source

fn color(&self) -> Option<Rgba>

Implementors§