Skip to main content

CleanlinessPolicy

Trait CleanlinessPolicy 

Source
pub trait CleanlinessPolicy {
    // Required methods
    fn observe(&mut self, event: &CleanlinessEvent);
    fn reusable(&self) -> bool;
}
Expand description

Downstream policy which consumes cleanliness evidence.

The protocol library reports facts; the application decides whether they prohibit pooling and what reset operation, if any, restores reusability.

Required Methods§

Source

fn observe(&mut self, event: &CleanlinessEvent)

Incorporates one observed fact into the policy’s state.

Source

fn reusable(&self) -> bool

Reports whether the accumulated evidence permits connection reuse.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§