Struct PollFn

struct PollFn<F> { ... }

A Future that wraps a function returning Poll.

This struct is created by [poll_fn()]. See its documentation for more.

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> UnsafeUnpin for PollFn<F>

impl<F> UnwindSafe for PollFn<F>

impl<F: Unpin> Unpin 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, 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>