pub enum PollResult<O> {
    Signal(O),
    Pending,
    Closed,
    Err(Error),
}
Expand description

Possible results of the poll_signal function.

Variants

Signal(O)

A signal arrived

Pending

There are no signals yet but there may arrive some in the future

Closed

The iterator was closed. There won’t be any signals reported from now on.

Err(Error)

An error happened during polling for arrived signals.

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.