Struct spin::relax::Loop[][src]

pub struct Loop;
Expand description

A strategy that rapidly spins, without telling the CPU to do any powering down.

You almost certainly do not want to use this. Use Spin instead. It exists for completeness and for targets that, for some reason, miscompile or do not support spin hint intrinsics despite attempting to generate code for them (i.e: this is a workaround for possible compiler bugs).

Trait Implementations

Perform the relaxing operation during a period of contention.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.