Skip to main content

ClientPolicy

Trait ClientPolicy 

Source
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§

Source

fn classify(&self, outcome: &O) -> PoolDirective

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§