[][src]Trait actix_web::actix::Supervised

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. Lifecycle events are extended with restarting method. If actor fails, supervisor creates new execution context and restarts actor. restarting method is called during restart. After call to this method Actor execute state changes to Started and normal lifecycle process starts.

restarting method get called with newly constructed Context object.

Provided methods

fn restarting(&mut self, ctx: &mut Self::Context)

Method called when supervisor restarting failed actor

Loading content...

Implementors

impl Supervised for Resolver[src]

fn restarting(&mut self, ctx: &mut Self::Context)[src]

impl Supervised for ProcessSignals[src]

fn restarting(&mut self, ctx: &mut Self::Context)[src]

impl Supervised for ClientConnector[src]

fn restarting(&mut self, ctx: &mut Self::Context)[src]

impl<T> Supervised for Mocker<T>[src]

fn restarting(&mut self, ctx: &mut Self::Context)[src]

Loading content...