pub enum PoolError<N> {
UnknownWorker(N),
DuplicateWorker(N),
SequenceExhausted,
WorkerFactoryIndex {
index: usize,
},
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§
UnknownWorker(N)
DuplicateWorker(N)
SequenceExhausted
WorkerFactoryIndex
StaleCompletion
RebalanceToRetiredWorker
Trait Implementations§
impl<N: Copy> Copy for PoolError<N>
impl<N: Eq> Eq for PoolError<N>
Source§impl<N> Error for PoolError<N>
impl<N> Error for PoolError<N>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl<N: PartialEq> 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