pub struct DefaultClassifier;Expand description
Built-in classifier that covers the common case:
| Condition | Verdict |
|---|---|
| 2xx and non-empty body | Success |
| 2xx and empty body | ProxyBlocked |
| 403 or 429 | ProxyBlocked |
| 5xx | TargetError |
| everything else | ProxyBlocked |
Trait Implementations§
Source§impl BodyClassifier for DefaultClassifier
impl BodyClassifier for DefaultClassifier
fn classify( &self, status: StatusCode, _headers: &HeaderMap, body: &[u8], ) -> BodyVerdict
Auto Trait Implementations§
impl Freeze for DefaultClassifier
impl RefUnwindSafe for DefaultClassifier
impl Send for DefaultClassifier
impl Sync for DefaultClassifier
impl Unpin for DefaultClassifier
impl UnsafeUnpin for DefaultClassifier
impl UnwindSafe for DefaultClassifier
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