Struct priomutex::internals::SleepToken [] [src]

pub struct SleepToken(_);

A token for putting the current thread to sleep.

Note: This is NOT Send or Sync! (Negative traits are currently unstable...)

Methods

impl SleepToken
[src]

[src]

Sleep the current thread until the corresponding WakeToken is signalled. If the WakeToken has already been signalled, this function returns immediately.

Trait Implementations

impl Debug for SleepToken
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for SleepToken

impl Sync for SleepToken