[][src]Struct futures_util::sink::Unfold

#[must_use = "sinks do nothing unless polled"]pub struct Unfold<T, F, R> { /* fields omitted */ }

Sink for the unfold function.

Trait Implementations

impl<T: Debug, F: Debug, R: Debug> Debug for Unfold<T, F, R>[src]

impl<T, F, R, Item, E> Sink<Item> for Unfold<T, F, R> where
    F: FnMut(T, Item) -> R,
    R: Future<Output = Result<T, E>>, 
[src]

type Error = E

The type of value produced by the sink when an error occurs.

impl<'__pin, T, F, R> Unpin for Unfold<T, F, R> where
    __Origin<'__pin, T, F, R>: Unpin
[src]

Auto Trait Implementations

impl<T, F, R> RefUnwindSafe for Unfold<T, F, R> where
    F: RefUnwindSafe,
    R: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, F, R> Send for Unfold<T, F, R> where
    F: Send,
    R: Send,
    T: Send
[src]

impl<T, F, R> Sync for Unfold<T, F, R> where
    F: Sync,
    R: Sync,
    T: Sync
[src]

impl<T, F, R> UnwindSafe for Unfold<T, F, R> where
    F: UnwindSafe,
    R: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[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.