[−][src]Trait amadeus_core::pipe::Pipe
Associated Types
type Item
Required methods
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
Provided methods
fn pipe<P>(self, pipe: P) -> PipePipe<Self, P> where
P: Pipe<Self::Item>,
Self: Sized,
P: Pipe<Self::Item>,
Self: Sized,
fn sink<S>(self, sink: S) -> PipeSink<Self, S> where
S: Sink<Self::Item>,
Self: Sized,
S: Sink<Self::Item>,
Self: Sized,
fn flat_map<F, R>(self, f: F) -> FlatMap<Self, F, R> where
F: FnMut(Self::Item) -> R,
R: Stream,
Self: Sized,
F: FnMut(Self::Item) -> R,
R: Stream,
Self: Sized,
fn filter<F>(self, f: F) -> Filter<Self, F> where
F: FnMut(&Self::Item) -> bool,
Self: Sized,
F: FnMut(&Self::Item) -> bool,
Self: Sized,
Implementations on Foreign Types
impl<A: Pipe<Source>, B: Pipe<Source, Item = A::Item>, Source> Pipe<Source> for Sum2<A, B>
[src]
type Item = A::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<P, Source> Pipe<Source> for Pin<P> where
P: DerefMut + Unpin,
P::Target: Pipe<Source>,
[src]
P: DerefMut + Unpin,
P::Target: Pipe<Source>,
type Item = <P::Target as Pipe<Source>>::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<'_, T: ?Sized, Source> Pipe<Source> for &'_ mut T where
T: Pipe<Source> + Unpin,
[src]
T: Pipe<Source> + Unpin,
type Item = T::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
Implementors
impl<'a, C, Source: 'a, T: 'a> Pipe<&'a Source> for ClonedTask<C> where
C: Pipe<&'a Source, Item = &'a T>,
T: Clone,
[src]
C: Pipe<&'a Source, Item = &'a T>,
T: Clone,
type Item = T
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = &'a Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = &'a Source>>
) -> Poll<Option<Self::Item>>
impl<A, B, C, Source, RefAItem> Pipe<Source> for JoinStreamTaskAsync<A, B, C, RefAItem, A::Item> where
A: Pipe<Source>,
B: Pipe<A::Item>,
C: Pipe<RefAItem>,
[src]
A: Pipe<Source>,
B: Pipe<A::Item>,
C: Pipe<RefAItem>,
type Item = Sum2<B::Item, C::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<A, B, Source> Pipe<Source> for PipePipe<A, B> where
A: Pipe<Source>,
B: Pipe<A::Item>,
[src]
A: Pipe<Source>,
B: Pipe<A::Item>,
type Item = B::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<C: Pipe<Source>, F, R, Source> Pipe<Source> for MapTask<C, F> where
F: FnMut(C::Item) -> R + Clone,
[src]
F: FnMut(C::Item) -> R + Clone,
type Item = R
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<C: Pipe<Source>, F, R, Source> Pipe<Source> for FlatMap<C, F, R> where
F: FnMut(C::Item) -> R,
R: Stream,
[src]
F: FnMut(C::Item) -> R,
R: Stream,
type Item = R::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<C: Pipe<Source>, F, Source> Pipe<Source> for InspectTask<C, F> where
F: FnMut(&C::Item) + Clone,
[src]
F: FnMut(&C::Item) + Clone,
type Item = C::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<C: Pipe<Source>, F, Source> Pipe<Source> for UpdateTask<C, F> where
F: FnMut(&mut C::Item) + Clone,
[src]
F: FnMut(&mut C::Item) + Clone,
type Item = C::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<C: Pipe<Source>, F, Source> Pipe<Source> for Filter<C, F> where
F: FnMut(&C::Item) -> bool,
[src]
F: FnMut(&C::Item) -> bool,
type Item = C::Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Item> Pipe<Item> for IdentityTask
[src]
type Item = Item
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Item>>
) -> Poll<Option<Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Item>>
) -> Poll<Option<Item>>
impl<Source> Pipe<Source> for AsyncTuple0<Source> where
Source: ,
[src]
Source: ,
type Item = Sum0
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>> Pipe<Source> for AsyncTuple1<Source, C0> where
Source: ,
[src]
Source: ,
type Item = Sum1<C0::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>> Pipe<Source> for AsyncTuple2<Source, C0, C1> where
Source: Copy,
[src]
Source: Copy,
type Item = Sum2<C0::Item, C1::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>, C2: Pipe<Source>> Pipe<Source> for AsyncTuple3<Source, C0, C1, C2> where
Source: Copy,
[src]
Source: Copy,
type Item = Sum3<C0::Item, C1::Item, C2::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>, C2: Pipe<Source>, C3: Pipe<Source>> Pipe<Source> for AsyncTuple4<Source, C0, C1, C2, C3> where
Source: Copy,
[src]
Source: Copy,
type Item = Sum4<C0::Item, C1::Item, C2::Item, C3::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>, C2: Pipe<Source>, C3: Pipe<Source>, C4: Pipe<Source>> Pipe<Source> for AsyncTuple5<Source, C0, C1, C2, C3, C4> where
Source: Copy,
[src]
Source: Copy,
type Item = Sum5<C0::Item, C1::Item, C2::Item, C3::Item, C4::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>, C2: Pipe<Source>, C3: Pipe<Source>, C4: Pipe<Source>, C5: Pipe<Source>> Pipe<Source> for AsyncTuple6<Source, C0, C1, C2, C3, C4, C5> where
Source: Copy,
[src]
Source: Copy,
type Item = Sum6<C0::Item, C1::Item, C2::Item, C3::Item, C4::Item, C5::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>, C2: Pipe<Source>, C3: Pipe<Source>, C4: Pipe<Source>, C5: Pipe<Source>, C6: Pipe<Source>> Pipe<Source> for AsyncTuple7<Source, C0, C1, C2, C3, C4, C5, C6> where
Source: Copy,
[src]
Source: Copy,
type Item = Sum7<C0::Item, C1::Item, C2::Item, C3::Item, C4::Item, C5::Item, C6::Item>
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
[src]
self: Pin<&mut Self>,
cx: &mut Context,
stream: Pin<&mut impl Stream<Item = Source>>
) -> Poll<Option<Self::Item>>
impl<Source, C0: Pipe<Source>, C1: Pipe<Source>, C2: Pipe<Source>, C3: Pipe<Source>, C4: Pipe<Source>, C5: Pipe<Source>, C6: Pipe<Source>, C7: Pipe<Source>> Pipe<Source> for AsyncTuple8<Source, C0, C1, C2, C3, C4, C5, C6, C7> where
Source: Copy,
[src]
Source: Copy,