pub enum PoolError<N> {
UnknownWorker(N),
CompletionForUnavailableWorker {
worker: N,
phase: WorkerPhase,
},
StaleCompletion {
worker: N,
expected: AssignmentId,
received: AssignmentId,
},
WorkerStoppedWhileUnavailable {
worker: N,
phase: WorkerPhase,
},
CreationResolvedWhileUnavailable {
worker: N,
phase: WorkerPhase,
},
RebalanceToRetiredWorker {
worker: N,
reason: WorkerRetirement,
},
}Expand description
Typed rejection of an event that cannot apply to the current pool state.
Variants§
Trait Implementations§
impl<N: Copy> Copy for PoolError<N>
impl<N: Eq> Eq for PoolError<N>
impl<N> StructuralPartialEq for PoolError<N>
Auto Trait Implementations§
impl<N> Freeze for PoolError<N>where
N: Freeze,
impl<N> RefUnwindSafe for PoolError<N>where
N: RefUnwindSafe,
impl<N> Send for PoolError<N>where
N: Send,
impl<N> Sync for PoolError<N>where
N: Sync,
impl<N> Unpin for PoolError<N>where
N: Unpin,
impl<N> UnsafeUnpin for PoolError<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for PoolError<N>where
N: UnwindSafe,
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