pub trait Policy:
Send
+ Sync
+ 'static {
// Required method
fn decide(&self, stats: &InstanceStats, current_tag: u32) -> Option<u32>;
}Expand description
Decides when and how to migrate a primitive instance’s strategy.
Called by the sidecar after each scan iteration that observed
at least one new op. Return Some(new_tag) to install a new
strategy via HandshakeHeader::set_tag; None to leave it alone.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".