Struct PollFn

struct PollFn<F> { ... }

Stream 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> 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<S> TryStreamExt for PollFn<F>

impl<S, T, E> TryStream for PollFn<F>

fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>

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

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

fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<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>