[][src]Trait amadeus::par_stream::StreamTask

#[must_use]pub trait StreamTask where
    <Self::Async as StreamTaskAsync>::Item == Self::Item
{ type Item; type Async: StreamTaskAsync; fn into_async(self) -> Self::Async; }

Associated Types

Loading content...

Required methods

fn into_async(self) -> Self::Async

Loading content...

Implementations on Foreign Types

impl<A, B> StreamTask for Sum2<A, B> where
    A: StreamTask,
    B: StreamTask<Item = <A as StreamTask>::Item>, 
[src]

type Item = <A as StreamTask>::Item

type Async = Sum2<<A as StreamTask>::Async, <B as StreamTask>::Async>

Loading content...

Implementors

impl StreamTask for Never[src]

type Item = Never

type Async = Never

impl<A, B> StreamTask for ChainTask<A, B> where
    A: StreamTask,
    B: StreamTask<Item = <A as StreamTask>::Item>, 
[src]

type Item = <A as StreamTask>::Item

type Async = ChainTask<<A as StreamTask>::Async, <B as StreamTask>::Async>

impl<C, F> StreamTask for InspectTask<C, F> where
    C: StreamTask,
    F: FnMut(&<C as StreamTask>::Item) + Clone
[src]

type Item = <C as StreamTask>::Item

type Async = InspectTask<<C as StreamTask>::Async, F>

impl<C, F> StreamTask for UpdateTask<C, F> where
    C: StreamTask,
    F: FnMut(&mut <C as StreamTask>::Item) + Clone
[src]

type Item = <C as StreamTask>::Item

type Async = UpdateTask<<C as StreamTask>::Async, F>

impl<C, F, Fut> StreamTask for FilterTask<C, F> where
    C: StreamTask,
    F: FnMut(&<C as StreamTask>::Item) -> Fut + Clone,
    Fut: Future<Output = bool>, 
[src]

type Item = <C as StreamTask>::Item

type Async = FilterStreamTaskAsync<<C as StreamTask>::Async, F, <FilterTask<C, F> as StreamTask>::Item, Fut>

impl<C, F, R> StreamTask for FlatMapTask<C, F> where
    C: StreamTask,
    F: Clone + FnMut(<C as StreamTask>::Item) -> R,
    R: Stream
[src]

type Item = <R as Stream>::Item

type Async = FlatMapStreamTaskAsync<<C as StreamTask>::Async, F, R>

impl<C, F, R> StreamTask for MapTask<C, F> where
    C: StreamTask,
    F: FnMut(<C as StreamTask>::Item) -> R + Clone
[src]

type Item = R

type Async = MapTask<<C as StreamTask>::Async, F>

impl<I, T, E, U> StreamTask for IntoTask<I, U> where
    I: StreamTask<Item = Result<T, E>>,
    T: Into<U>, 
[src]

type Item = Result<U, E>

type Async = IntoTask<I::Async, U>

impl<T> StreamTask for IterStreamTask<T>[src]

Loading content...