# [−]Trait actix_web::actix::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

## Implementors

###

`impl Supervised for Resolver`

####

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

###

`impl Supervised for ProcessSignals`

####

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

###

`impl Supervised for ClientConnector`

[src]

####

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

###

`impl<T> Supervised for Mocker<T>`

####

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

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)