pub trait Routine:
    Sized
    + Send
    + 'static {
    type Context: RoutineContext<Self>;
    type Output: Send;
    // Provided methods
    fn routine<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 mut Self::Context,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn basic_routine<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 mut Self::Context,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn interruptable_routine<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 mut Self::Context,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output, TaskError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn repeatable_routine<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn finalize<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        output: Result<Self::Output, TaskError>,
        ctx: &'life1 mut Self::Context,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn time_limit<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn routine_wait<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _succeed: bool,
        ctx: &'life1 mut Self::Context,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}Required Associated Types§
Provided Methods§
fn routine<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 mut Self::Context,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn basic_routine<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 mut Self::Context,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn interruptable_routine<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    ctx: &'life1 mut Self::Context,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, TaskError>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn repeatable_routine<'life0, 'async_trait>(
    &'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>, Error>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
fn finalize<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    output: Result<Self::Output, TaskError>,
    ctx: &'life1 mut Self::Context,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn time_limit<'life0, 'async_trait>(
    &'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
fn routine_wait<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    _succeed: bool,
    ctx: &'life1 mut Self::Context,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.