Trait Runner

Source
pub trait Runner {
    // Required method
    fn run<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn name(&self) -> &str { ... }
    fn runtime(&self, _config: Arc<Config>) -> Result<Runtime, Error> { ... }
}

Required Methods§

Source

fn run<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn name(&self) -> &str

Source

fn runtime(&self, _config: Arc<Config>) -> Result<Runtime, Error>

Implementors§