[][src]Struct futures::stream::PollFn

#[must_use = "streams do nothing unless polled"]
pub struct PollFn<F> { /* fields omitted */ }

A stream which adapts a function returning Poll.

Created by the poll_fn function.

Trait Implementations

impl<T, E, F> Stream for PollFn<F> where
    F: FnMut() -> Poll<Option<T>, E>, 
[src]

type Item = T

The type of item this stream will yield on success.

type Error = E

The type of error this stream may generate.

impl<F: Debug> Debug for PollFn<F>[src]

Auto Trait Implementations

impl<F> Unpin for PollFn<F> where
    F: Unpin

impl<F> Send for PollFn<F> where
    F: Send

impl<F> Sync for PollFn<F> where
    F: Sync

impl<F> UnwindSafe for PollFn<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for PollFn<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]