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.
pub fn router<R1: Router<C>>(self, router: R1) -> ActorGroup<R1, C>
pub fn exec<X, O, ER>(self, exec: X) -> Schema
Trait Implementations§
Auto Trait Implementations§
impl<R, C> Freeze for ActorGroup<R, C>where
R: Freeze,
impl<R, C> RefUnwindSafe for ActorGroup<R, C>where
R: RefUnwindSafe,
C: RefUnwindSafe,
impl<R, C> Send for ActorGroup<R, C>
impl<R, C> Sync for ActorGroup<R, C>
impl<R, C> Unpin for ActorGroup<R, C>
impl<R, C> UnwindSafe for ActorGroup<R, C>where
R: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more