pub enum WorkerStartResult<W, P>where
W: Behavior,
P: ActivationPlan,
BehaviorAddr<W>: EndpointAddress,
StopOnShutdown<W>: Behavior<Protocol = W::Protocol, Ph = W::Ph, Birth = W::Birth>,{
CreationRejected {
rejection: WorkerCreationRejection<W>,
activation: P,
stopped: Option<ChildStopped<BehaviorAddr<W>>>,
},
Ready {
attempt: WorkerAttempt,
readiness: P::Ready,
},
Unavailable {
attempt: WorkerAttempt,
drain: ProxyDrain<W, P>,
},
}Expand description
Complete result of one owner-submitted worker start.
Variants§
CreationRejected
Worker creation rejected before a worker was committed.
Fields
§
rejection: WorkerCreationRejection<W>§
activation: P§
stopped: Option<ChildStopped<BehaviorAddr<W>>>Ready
The committed worker became ready and may receive service commands.
A committed worker could not become available.
Auto Trait Implementations§
impl<W, P> !Freeze for WorkerStartResult<W, P>
impl<W, P> !RefUnwindSafe for WorkerStartResult<W, P>
impl<W, P> !Send for WorkerStartResult<W, P>
impl<W, P> !Sync for WorkerStartResult<W, P>
impl<W, P> !Unpin for WorkerStartResult<W, P>
impl<W, P> !UnsafeUnpin for WorkerStartResult<W, P>
impl<W, P> !UnwindSafe for WorkerStartResult<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