pub trait ClientPolicy<O>: Send + Sync {
// Required method
fn classify(&self, outcome: &O) -> PoolDirective;
}Expand description
Application-owned classification from a domain outcome to pool admission.
O may be an HTTP response, a protocol frame, or an application result.
The pool never decodes it.
Required Methods§
fn classify(&self, outcome: &O) -> PoolDirective
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".