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
StartCreationRejected
Fields
§
key: Key§
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
StartInputRejected
ReplacementInputRejected
StartOutcomeRejected
Replaced
ReplacementFailed
StopFinished
Fields
§
key: Key§
proxy: EstablishedActor<StableProxy<Worker, Plan>>§
result: Result<ChildStopped<BehaviorAddr<Worker>>, EntryStopFailure<BehaviorAddr<Worker>>>UnexpectedWorkerStopped
Fields
§
key: Key§
worker: WorkerAttempt§
stopped: ChildStopped<BehaviorAddr<Worker>>§
disposition: UnexpectedExitOperationCancelled
EntryRetired
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> 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