pub enum BodyVerdict {
Success,
ProxyBlocked,
TargetError,
}Expand description
Three-level verdict returned by a BodyClassifier for every HTTP response.
The scheduler uses this to decide what to do next:
Success— task is done, proxy gets a positive health mark.ProxyBlocked— this proxy failed for the target; counts as a proxy failure.TargetError— the target itself is unhealthy; does not penalise the proxy but contributes toward tripping the host circuit breaker.
Variants§
Trait Implementations§
Source§impl Clone for BodyVerdict
impl Clone for BodyVerdict
Source§fn clone(&self) -> BodyVerdict
fn clone(&self) -> BodyVerdict
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BodyVerdict
impl Debug for BodyVerdict
Source§impl PartialEq for BodyVerdict
impl PartialEq for BodyVerdict
Source§fn eq(&self, other: &BodyVerdict) -> bool
fn eq(&self, other: &BodyVerdict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BodyVerdict
impl Eq for BodyVerdict
impl StructuralPartialEq for BodyVerdict
Auto Trait Implementations§
impl Freeze for BodyVerdict
impl RefUnwindSafe for BodyVerdict
impl Send for BodyVerdict
impl Sync for BodyVerdict
impl Unpin for BodyVerdict
impl UnsafeUnpin for BodyVerdict
impl UnwindSafe for BodyVerdict
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