pub trait WaitStrategy: Send {
// Required method
fn wait(&mut self);
// Provided method
fn signal(&self) { ... }
}Expand description
Strategy for backing off when the ring is full (producer) or empty
(consumer). Implementations should be cheap to construct and Sendable
to the owning thread.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".