Skip to main content

Run

Trait Run 

Source
pub trait Run: Send + Sync {
    // Required method
    fn run<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        handler: &'life1 mut GeneralHandler,
        id: String,
        message: &'life2 Message,
    ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn run<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, handler: &'life1 mut GeneralHandler, id: String, message: &'life2 Message, ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§