Trait SupervisedTask

Source
pub trait SupervisedTask {
    type Error: Send;

    // Required method
    fn run_forever<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn name(&self) -> Option<&str> { ... }
}

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Source

fn name(&self) -> Option<&str>

Implementors§