[][src]Struct futures::stream::Unfold

#[must_use = "streams do nothing unless polled"]
pub struct Unfold<T, F, Fut> where
    Fut: IntoFuture
{ /* fields omitted */ }

A stream which creates futures, polls them and return their result

This stream is returned by the futures::stream::unfold method

Trait Implementations

impl<T, F, Fut, It> Stream for Unfold<T, F, Fut> where
    F: FnMut(T) -> Option<Fut>,
    Fut: IntoFuture<Item = (It, T)>, 
[src]

type Item = It

The type of item this stream will yield on success.

type Error = Fut::Error

The type of error this stream may generate.

impl<T: Debug, F: Debug, Fut: Debug> Debug for Unfold<T, F, Fut> where
    Fut: IntoFuture,
    Fut::Future: Debug
[src]

Auto Trait Implementations

impl<T, F, Fut> Unpin for Unfold<T, F, Fut> where
    F: Unpin,
    T: Unpin,
    <Fut as IntoFuture>::Future: Unpin

impl<T, F, Fut> Send for Unfold<T, F, Fut> where
    F: Send,
    T: Send,
    <Fut as IntoFuture>::Future: Send

impl<T, F, Fut> Sync for Unfold<T, F, Fut> where
    F: Sync,
    T: Sync,
    <Fut as IntoFuture>::Future: Sync

impl<T, F, Fut> UnwindSafe for Unfold<T, F, Fut> where
    F: UnwindSafe,
    T: UnwindSafe,
    <Fut as IntoFuture>::Future: UnwindSafe

impl<T, F, Fut> RefUnwindSafe for Unfold<T, F, Fut> where
    F: RefUnwindSafe,
    T: RefUnwindSafe,
    <Fut as IntoFuture>::Future: 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]