logo
pub struct Poller<T, F: FnMut(&mut Exec<'_>) -> Poll<T> + Unpin>(_);
Expand description

A Notifier created from a function returning Poll.

Implementations

Create a new Notifier from a function returning Poll.

Trait Implementations

Formats the value using the given formatter. Read more

The event produced by this notifier

Get the next event from this notifier, registering a wakeup when not ready. Read more

Get the next Self::Event Read more

Transform produced Self::Events with a function.

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.