pub enum PostAction {
    Continue,
    Reregister,
    Disable,
    Remove,
}
Expand description

Possible actions that can be requested to the event loop by an event source once its events have been processed.

PostAction values can be combined with the | (bit-or) operator (or with |=) with the result that:

  • if both values are identical, the result is that value
  • if they are different, the result is Reregister

Bit-or-ing these results is useful for composed sources to combine the results of their child sources, but note that it only applies to the child sources. For example, if every child source returns Continue, the result will be Continue, but the parent source might still need to return Reregister or something else depending on any additional logic it uses.

Variants

Continue

Continue listening for events on this source as before

Reregister

Trigger a re-registration of this source

Disable

Disable this source

Has the same effect as LoopHandle::disable

Remove

Remove this source from the eventloop

Has the same effect as LoopHandle::kill

Trait Implementations

Combines PostAction values returned from nested event sources.

The resulting type after applying the | operator.
Performs the | operation. Read more

Combines PostAction values returned from nested event sources.

Performs the |= operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.