[][src]Trait ghost_actor::GhostControlHandler

pub trait GhostControlHandler: 'static + Send + Sized {
    fn handle_ghost_actor_shutdown(self) -> MustBoxFuture<'static, ()> { ... }
}

All handlers must implement these generic control callbacks. Many of the functions within are provided as no-ops that can be overridden.

Provided methods

fn handle_ghost_actor_shutdown(self) -> MustBoxFuture<'static, ()>

Called when the actor task loops ends. Allows for any needed cleanup / triggers.

Loading content...

Implementors

Loading content...