Struct PollFn

struct PollFn<F> { ... }

Future for the poll_fn function.

Implementations

impl<F> Debug for PollFn<F>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<F> Freeze for PollFn<F>

impl<F> IntoFuture for PollFn<F>

fn into_future(self: Self) -> <F as IntoFuture>::IntoFuture

impl<F> RefUnwindSafe for PollFn<F>

impl<F> Send for PollFn<F>

impl<F> Sync for PollFn<F>

impl<F> Unpin for PollFn<F>

impl<F> UnsafeUnpin for PollFn<F>

impl<F> UnwindSafe for PollFn<F>

impl<F, T, E> TryFuture for PollFn<F>

fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>

impl<Fut> TryFutureExt for PollFn<F>

impl<T> Any for PollFn<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PollFn<F>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PollFn<F>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for PollFn<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for PollFn<F>

impl<T, F> Future for PollFn<F>

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<T>

impl<T, U> Into for PollFn<F>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PollFn<F>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PollFn<F>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>