pub struct PredicateClassifier<F>{ /* private fields */ }Expand description
Predicate-based classifier using a closure
Allows using simple closures for common filtering patterns.
Implementations§
Source§impl<F> PredicateClassifier<F>
impl<F> PredicateClassifier<F>
Trait Implementations§
Source§impl<F> Debug for PredicateClassifier<F>
impl<F> Debug for PredicateClassifier<F>
Source§impl<F> FailureClassifier for PredicateClassifier<F>
impl<F> FailureClassifier for PredicateClassifier<F>
Source§fn should_trip(&self, ctx: &FailureContext<'_>) -> bool
fn should_trip(&self, ctx: &FailureContext<'_>) -> bool
Determine if this error should count as a failure for circuit breaker logic Read more
Auto Trait Implementations§
impl<F> Freeze for PredicateClassifier<F>where
F: Freeze,
impl<F> RefUnwindSafe for PredicateClassifier<F>where
F: RefUnwindSafe,
impl<F> Send for PredicateClassifier<F>
impl<F> Sync for PredicateClassifier<F>
impl<F> Unpin for PredicateClassifier<F>where
F: Unpin,
impl<F> UnsafeUnpin for PredicateClassifier<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for PredicateClassifier<F>where
F: 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