pub enum EventState {
    Wait,
    Signaled,
}
Expand description

Possible states for an event

Variants§

§

Wait

An event set to “Wait” will cause subsequent wait() calls to block

This is mostly usefull for manual events as auto events automatically reset to “Wait”.

§

Signaled

An event set to “Signaled” will unblock threads who are blocks on wait() calls.

If this is an Auto lock, only one waiting thread will be unblocked as the state will be automatically set to WAIT after the first threads wakes up.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.