Struct spin::relax::Yield[][src]

pub struct Yield;
This is supported on crate feature std only.

A strategy that yields the current time slice to the scheduler in favour of other threads or processes.

This is generally used as a strategy for minimising power consumption and priority inversion on targets that have a standard library available. Note that such targets have scheduler-integrated concurrency primitives available, and you should generally use these instead, except in rare circumstances.

Trait Implementations

impl RelaxStrategy for Yield[src]

Auto Trait Implementations

impl RefUnwindSafe for Yield

impl Send for Yield

impl Sync for Yield

impl Unpin for Yield

impl UnwindSafe for Yield

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.