spin::relax

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§