Skip to main content

DynamicLifecycle

Enum DynamicLifecycle 

Source
pub enum DynamicLifecycle<Key, Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
{
Show 13 variants Started { key: Key, generation: u64, operation: u64, proxy: EstablishedActor<StableProxy<Worker, Plan>>, }, StartCreationRejected { key: Key, generation: u64, submission: WorkerSubmission<Worker, Plan>, creation: SettledItem<RoutedCreation<BehaviorAddr<Worker>, StableProxy<Worker, Plan>>, ItemSettlement<RoutedCreation<BehaviorAddr<Worker>, StableProxy<Worker, Plan>>, ChildCreationOutcome<StableProxy<Worker, Plan>, ChildHead>, CreationRejection, Never>>, }, WorkerChangeInterrupted { key: Key, generation: u64, operation: u64, interruption: WorkerChangeInterruption, worker: InterruptedWorker<Worker, Plan>, }, StartInputRejected { key: Key, generation: u64, }, ReplacementInputRejected { key: Key, generation: u64, operation: u64, }, StartOutcomeRejected { key: Key, generation: u64, operation: u64, outcome: InitialWorkerOutcome<Worker, Plan>, }, Replaced { key: Key, generation: u64, operation: u64, proxy: EstablishedActor<StableProxy<Worker, Plan>>, }, ReplacementFailed { key: Key, generation: u64, operation: u64, failure: ReplacementFailure<Worker, Plan>, }, StopFinished { key: Key, generation: u64, operation: u64, proxy: EstablishedActor<StableProxy<Worker, Plan>>, result: Result<ChildStopped<BehaviorAddr<Worker>>, EntryStopFailure<BehaviorAddr<Worker>>>, }, UnexpectedWorkerStopped { key: Key, generation: u64, worker: WorkerAttempt, readiness: Plan::Ready, stopped: ChildStopped<BehaviorAddr<Worker>>, disposition: UnexpectedExit, }, CommandUnavailable { key: Key, generation: u64, sender: BehaviorAddr<Worker>, proxy_phase: ProxyPhase, command: <Worker::Protocol as Protocol>::Msg, }, OperationCancelled { key: Key, generation: u64, operation: u64, change: WorkerChange, outcome: CancellationOutcome<Worker, Plan>, }, EntryRetired { key: Key, generation: u64, cause: EntryRetirement, },
}
Expand description

Durable dynamic-supervisor lifecycle message.

Variants§

§

Started

Fields

§key: Key
§generation: u64
§operation: u64
§proxy: EstablishedActor<StableProxy<Worker, Plan>>
§

StartCreationRejected

Fields

§key: Key
§generation: u64
§submission: WorkerSubmission<Worker, Plan>
§

WorkerChangeInterrupted

Fields

§key: Key
§generation: u64
§operation: u64
§worker: InterruptedWorker<Worker, Plan>
§

StartInputRejected

Fields

§key: Key
§generation: u64
§

ReplacementInputRejected

Fields

§key: Key
§generation: u64
§operation: u64
§

StartOutcomeRejected

Fields

§key: Key
§generation: u64
§operation: u64
§outcome: InitialWorkerOutcome<Worker, Plan>
§

Replaced

Fields

§key: Key
§generation: u64
§operation: u64
§proxy: EstablishedActor<StableProxy<Worker, Plan>>
§

ReplacementFailed

Fields

§key: Key
§generation: u64
§operation: u64
§failure: ReplacementFailure<Worker, Plan>
§

StopFinished

Fields

§key: Key
§generation: u64
§operation: u64
§proxy: EstablishedActor<StableProxy<Worker, Plan>>
§

UnexpectedWorkerStopped

Fields

§key: Key
§generation: u64
§readiness: Plan::Ready
§stopped: ChildStopped<BehaviorAddr<Worker>>
§disposition: UnexpectedExit
§

CommandUnavailable

Fields

§key: Key
§generation: u64
§sender: BehaviorAddr<Worker>
§proxy_phase: ProxyPhase
§command: <Worker::Protocol as Protocol>::Msg
§

OperationCancelled

Fields

§key: Key
§generation: u64
§operation: u64
§outcome: CancellationOutcome<Worker, Plan>
§

EntryRetired

Fields

§key: Key
§generation: u64

Auto Trait Implementations§

§

impl<Key, Worker, Plan> !Freeze for DynamicLifecycle<Key, Worker, Plan>

§

impl<Key, Worker, Plan> !RefUnwindSafe for DynamicLifecycle<Key, Worker, Plan>

§

impl<Key, Worker, Plan> !Send for DynamicLifecycle<Key, Worker, Plan>

§

impl<Key, Worker, Plan> !Sync for DynamicLifecycle<Key, Worker, Plan>

§

impl<Key, Worker, Plan> !Unpin for DynamicLifecycle<Key, Worker, Plan>

§

impl<Key, Worker, Plan> !UnsafeUnpin for DynamicLifecycle<Key, Worker, Plan>

§

impl<Key, Worker, Plan> !UnwindSafe for DynamicLifecycle<Key, Worker, Plan>

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.