#[non_exhaustive]pub enum UnhealthyOutcome {
StillHealthy {
failure_count: u32,
},
ShouldEvict {
failure_count: u32,
},
}Expand description
Outcome of a ClientPool::mark_unhealthy call.
Tells the caller whether the peer is still within its failure
budget or has crossed the eviction threshold — in which case the
fan-out engine should remove the peer and emit a
ServerEvent::ClientEvicted event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StillHealthy
Client is still within the allowed failure budget.
ShouldEvict
Client has exceeded the threshold and should be evicted.
Trait Implementations§
Source§impl Clone for UnhealthyOutcome
impl Clone for UnhealthyOutcome
Source§fn clone(&self) -> UnhealthyOutcome
fn clone(&self) -> UnhealthyOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnhealthyOutcome
impl Debug for UnhealthyOutcome
Source§impl PartialEq for UnhealthyOutcome
impl PartialEq for UnhealthyOutcome
impl Copy for UnhealthyOutcome
impl Eq for UnhealthyOutcome
impl StructuralPartialEq for UnhealthyOutcome
Auto Trait Implementations§
impl Freeze for UnhealthyOutcome
impl RefUnwindSafe for UnhealthyOutcome
impl Send for UnhealthyOutcome
impl Sync for UnhealthyOutcome
impl Unpin for UnhealthyOutcome
impl UnwindSafe for UnhealthyOutcome
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