Trait meio::handlers::Scheduled[][src]

pub trait Scheduled<T>: Actor {
    #[must_use]
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        timestamp: Instant,
        item: T,
        ctx: &'life1 mut Context<Self>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Represents reaction to a scheduled activity.

Required methods

#[must_use]
fn handle<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    timestamp: Instant,
    item: T,
    ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

The method called when the deadline has reached.

Loading content...

Implementors

Loading content...