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§
Sourcefn observe(&mut self, event: &CleanlinessEvent)
fn observe(&mut self, event: &CleanlinessEvent)
Incorporates one observed fact into the policy’s state.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".