Struct elfo_core::group::ActorGroup
source · pub struct ActorGroup<R, C> { /* private fields */ }
Implementations§
source§impl<R, C> ActorGroup<R, C>
impl<R, C> ActorGroup<R, C>
pub fn config<C1: Config>(self) -> ActorGroup<R, C1>
sourcepub fn restart_policy(self, policy: RestartPolicy) -> Self
pub fn restart_policy(self, policy: RestartPolicy) -> Self
The behaviour on actor termination.
RestartPolicy::on_failures
is used by default.
sourcepub fn termination_policy(self, policy: TerminationPolicy) -> Self
pub fn termination_policy(self, policy: TerminationPolicy) -> Self
The behaviour on the Terminate
message.
TerminationPolicy::closing
is used by default.