Trait meio::handlers::InterruptedBy[][src]

pub trait InterruptedBy<A: Actor>: Actor {
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        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
; }
Expand description

The listener to an interruption signal.

Required methods

Called when the Actor terminated by another actor.

In many cases you should prefer to call ctx.shutdown() here.

Implementors