pub struct GenericManualResetEvent<MutexType: RawMutex> { /* private fields */ }
Expand description

A synchronization primitive which can be either in the set or reset state.

Tasks can wait for the event to get set by obtaining a Future via wait. This Future will get fulfilled when the event has been set.

Implementations

Creates a new ManualResetEvent in the given state

Sets the event.

Setting the event will notify all pending waiters.

Resets the event.

Returns whether the event is set

Returns a future that gets fulfilled when the event is set.

Trait Implementations

Formats the value using the given formatter. Read more

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.