pub struct Events<S> { /* private fields */ }
Expand description

Shared event mask.

The event mask is an atomic bitmask shared between the executor and the event sources. The type parameter S is an EventMask.

Events or signals?

They are the same. The name “event” refers to their presence in the shared event mask, while the name “signal” refers to poll-local signal masks. Events become signals when they are handled or waited for.

Implementations

Raise all events in a mask.

This operation is atomic: multiple events can be safely raised at the same time. Already raised signals are left as is.

Trait Implementations

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.