[]Struct async_std::stream::FromFn

pub struct FromFn<F, Fut, T> { /* fields omitted */ }

A stream that yields elements by calling a closure.

This stream is created by the from_fn function. See its documentation for more.

Trait Implementations

impl<F, Fut, T> Stream for FromFn<F, Fut, T> where
    F: FnMut() -> Fut,
    Fut: Future<Output = Option<T>>, 
[src]

type Item = T

The type of items yielded by this stream. Read more

impl<'__pin, F, Fut, T> Unpin for FromFn<F, Fut, T> where
    __Origin<'__pin, F, Fut, T>: Unpin

impl<F: Debug, Fut: Debug, T: Debug> Debug for FromFn<F, Fut, T>[src]

Auto Trait Implementations

impl<F, Fut, T> Send for FromFn<F, Fut, T> where
    F: Send,
    Fut: Send,
    T: Send

impl<F, Fut, T> Sync for FromFn<F, Fut, T> where
    F: Sync,
    Fut: Sync,
    T: Sync

impl<F, Fut, T> UnwindSafe for FromFn<F, Fut, T> where
    F: UnwindSafe,
    Fut: UnwindSafe,
    T: UnwindSafe

impl<F, Fut, T> RefUnwindSafe for FromFn<F, Fut, T> where
    F: RefUnwindSafe,
    Fut: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

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> 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]