Skip to main content

FixedLifecycleEvent

Enum FixedLifecycleEvent 

Source
pub enum FixedLifecycleEvent<'a, Role, Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
{ Started { role: &'a Role, proxy: &'a EstablishedActor<StableProxy<Worker, Plan>>, }, Restarted { role: &'a Role, proxy: &'a EstablishedActor<StableProxy<Worker, Plan>>, recovery: NonZeroU64, }, WorkerStoppedIneligible { role: &'a Role, stopped: &'a ChildStopped<BehaviorAddr<Worker>>, }, WorkerStoppedAfterAdmission { role: &'a Role, stopped: &'a ChildStopped<BehaviorAddr<Worker>>, recovery: NonZeroU64, }, Unavailable { role: &'a Role, sender: &'a BehaviorAddr<Worker>, phase: ProxyPhase, command: &'a <Worker::Protocol as Protocol>::Msg, }, MemberRetired { role: &'a Role, }, }
Expand description

Borrowed exhaustive view of one fixed-supervisor lifecycle message.

Variants§

§

Started

One fixed role’s first worker became ready.

Fields

§proxy: &'a EstablishedActor<StableProxy<Worker, Plan>>
§

Restarted

A replacement worker became ready after its predecessor stopped.

Fields

§proxy: &'a EstablishedActor<StableProxy<Worker, Plan>>
§recovery: NonZeroU64
§

WorkerStoppedIneligible

A worker stopped without automatic recovery.

Fields

§stopped: &'a ChildStopped<BehaviorAddr<Worker>>
§

WorkerStoppedAfterAdmission

A worker stop entered one admitted recovery.

Fields

§stopped: &'a ChildStopped<BehaviorAddr<Worker>>
§recovery: NonZeroU64
§

Unavailable

A service command arrived while the role had no ready worker.

Fields

§sender: &'a BehaviorAddr<Worker>
§command: &'a <Worker::Protocol as Protocol>::Msg
§

MemberRetired

The role no longer belongs to the live supervisor topology.

Fields

Auto Trait Implementations§

§

impl<'a, Role, Worker, Plan> Freeze for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized,

§

impl<'a, Role, Worker, Plan> RefUnwindSafe for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + RefUnwindSafe, Role: RefUnwindSafe, <<Worker as Behavior>::Protocol as Protocol>::Msg: RefUnwindSafe, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: RefUnwindSafe,

§

impl<'a, Role, Worker, Plan> Send for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Sync, Role: Sync, <<Worker as Behavior>::Protocol as Protocol>::Msg: Sync, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: Sync,

§

impl<'a, Role, Worker, Plan> Sync for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Sync, Role: Sync, <<Worker as Behavior>::Protocol as Protocol>::Msg: Sync, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: Sync,

§

impl<'a, Role, Worker, Plan> Unpin for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized,

§

impl<'a, Role, Worker, Plan> UnsafeUnpin for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized,

§

impl<'a, Role, Worker, Plan> UnwindSafe for FixedLifecycleEvent<'a, Role, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + RefUnwindSafe, Role: RefUnwindSafe, <<Worker as Behavior>::Protocol as Protocol>::Msg: RefUnwindSafe, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Installed<StableProxy<Worker, Plan>>: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.