Trait actix::prelude::Supervised
[−]
[src]
pub trait Supervised: Actor { fn restarting(&mut self, ctx: &mut Self::Context) { ... } }
Actors with ability to restart after failure
Supervised actors can be managed by
Supervisor
Livecycle events are extended with restarting
state for supervised actors.
If actor failes supervisor create new execution context and restart actor.
restarting
method is called during restart. After call to this method
Actor execute state changes to Started
and normal lifecycle process starts.
Provided Methods
fn restarting(&mut self, ctx: &mut Self::Context)
Method called when supervisor restarting failed actor
Implementors
impl Supervised for ProcessSignals