pub trait SyncSupervisor<A> where
    A: SyncActor
{ fn decide(&mut self, error: A::Error) -> SupervisorStrategy<A::Argument>; }
Expand description

Supervisor for synchronous actors.

For more information about supervisors see the module documentation, here only the design of the trait is discussed.

The trait is designed to be generic over the actor (A). This means that the same type can implement supervision for a number of different actors. But a word of caution, supervisors should generally be small and simple, which means that having a different supervisor for each actor is often a good thing.

SyncSupervisor is implemented for any function that takes an error E and returns SupervisorStrategy<Arg> automatically.

Required Methods

Decide what happens to the actor that returned error.

Implementors