Skip to main content

HandleResponsePredicate

Type Alias HandleResponsePredicate 

Source
pub type HandleResponsePredicate<Res> = Arc<dyn Fn(&Res) -> bool + Send + Sync>;
Expand description

Predicate to determine if a successful response should trigger the fallback.

When this predicate returns true, the response is treated as if the service had failed, and the fallback strategy is applied.

Aliased Typeยง

pub struct HandleResponsePredicate<Res> { /* private fields */ }