pub struct Event {
    inner: Event,
}
Expand description

An asynchronous version of a base::Event.

Fields

inner: Event

Implementations

Creates a new Event in an unsignaled state.

Wait until the event is signaled.

Blocks until the internal counter for the Event reaches a nonzero value, at which point the internal counter for the Event is reset to 0 and the previous value is returned.

Trigger the event, waking up any task that was blocked on it.

Attempt to clone the Event.

If successful, the returned Event will have its own unique OS handle for the underlying event.

Trait Implementations

Formats the value using the given formatter. Read more
The type returned in the event of a conversion error.
Performs the conversion.

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.