pub trait IdleStrategy {
// Required method
fn idle(&mut self, work_count: i32);
// Provided method
fn reset(&mut self) { ... }
}Expand description
Back off a poll loop when the last cycle did no work. Mirrors Aeron’s IdleStrategy:
idle(work_count) returns immediately when work_count > 0, otherwise spins / yields /
sleeps depending on the implementation.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".