Trait RelaxStrategy

Source
pub trait RelaxStrategy {
    // Required method
    fn relax();
}
Expand description

A trait implemented by spinning relax strategies.

Required Methods§

Source

fn relax()

Perform the relaxing operation during a period of contention.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RelaxStrategy for Loop

Source§

impl RelaxStrategy for Spin

Source§

impl RelaxStrategy for Yield

Available on crate feature std only.