pub enum WorkerSelectionError {
CapabilityUnavailable,
NoHealthyWorker,
AtCapacity,
InvalidAffinity,
InvalidLimits,
}Expand description
Controlled reason why no worker could be selected.
Variants§
No registered worker advertises the requested capability.
NoHealthyWorker
Registered workers are disconnected or outside the health window.
AtCapacity
Every healthy worker reached its route or outbound-queue limit.
InvalidAffinity
Affinity policy requires a non-empty bounded key.
InvalidLimits
Health and in-flight bounds must be positive and within Runtime limits.
Trait Implementations§
Source§impl Clone for WorkerSelectionError
impl Clone for WorkerSelectionError
impl Copy for WorkerSelectionError
Source§impl Debug for WorkerSelectionError
impl Debug for WorkerSelectionError
Source§impl Display for WorkerSelectionError
impl Display for WorkerSelectionError
impl Eq for WorkerSelectionError
Source§impl Error for WorkerSelectionError
impl Error for WorkerSelectionError
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()
Source§impl PartialEq for WorkerSelectionError
impl PartialEq for WorkerSelectionError
impl StructuralPartialEq for WorkerSelectionError
Auto Trait Implementations§
impl Freeze for WorkerSelectionError
impl RefUnwindSafe for WorkerSelectionError
impl Send for WorkerSelectionError
impl Sync for WorkerSelectionError
impl Unpin for WorkerSelectionError
impl UnsafeUnpin for WorkerSelectionError
impl UnwindSafe for WorkerSelectionError
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