pub enum ReplacementOutcome<W, P>where
W: Behavior,
P: ActivationPlan,
BehaviorAddr<W>: EndpointAddress,
StopOnShutdown<W>: Behavior<Protocol = W::Protocol, Ph = W::Ph, Birth = W::Birth>,{
NotReplaceable {
worker: W,
activation: P,
phase: ProxyPhase,
},
WorkerAttemptsExhausted {
replaces: WorkerAttempt,
worker: W,
activation: P,
},
CancelledBeforeBirth {
replaces: WorkerAttempt,
worker: W,
activation: P,
},
Resolved {
replaces: WorkerAttempt,
result: WorkerStartResult<W, P>,
},
}Expand description
Complete disposition of one submitted replacement worker.
Variants§
NotReplaceable
The current proxy phase cannot accept another replacement.
WorkerAttemptsExhausted
The proxy cannot reserve another non-reused worker attempt.
CancelledBeforeBirth
Owner shutdown returned a successor before its creation was emitted.
Resolved
The successor start produced one complete result.
Auto Trait Implementations§
impl<W, P> !Freeze for ReplacementOutcome<W, P>
impl<W, P> !RefUnwindSafe for ReplacementOutcome<W, P>
impl<W, P> !Send for ReplacementOutcome<W, P>
impl<W, P> !Sync for ReplacementOutcome<W, P>
impl<W, P> !Unpin for ReplacementOutcome<W, P>
impl<W, P> !UnsafeUnpin for ReplacementOutcome<W, P>
impl<W, P> !UnwindSafe for ReplacementOutcome<W, P>
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