Struct CallAllUnordered
pub struct CallAllUnordered<Svc, S>
where
Svc: Service<S::Item>,
S: Stream, { /* private fields */ }
A stream of responses received from the inner service in received order.
Similar to CallAll except, instead of yielding responses in request order,
responses are returned as they are available.
Implementations
impl<Svc, S> CallAllUnordered<Svc, S>
where
Svc: Service<S::Item>,
S: Stream,
fn new(service: Svc, stream: S) -> CallAllUnordered<Svc, S>Create new
CallAllUnorderedcombinator.fn into_inner(self) -> SvcExtract the wrapped
Service.Panics
Panics if
take_servicewas already called.fn take_service(self: Pin<&mut Self>) -> SvcExtract the wrapped
Service.This
CallAllUnorderedcan no longer be used after this function has been called.Panics
Panics if
take_servicewas already called.
Trait Implementations
impl<'__pin, Svc, S> Unpin for CallAllUnordered<Svc, S>
where
PinnedFieldsOf<__Origin<'__pin, Svc, S>>: Unpin,
Svc: Service<S::Item>,
S: Stream,
impl<Svc, S> Debug for CallAllUnordered<Svc, S>
where
Svc: Service<S::Item> + Debug,
S: Stream + Debug,
Svc::Future: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Svc, S> Stream for CallAllUnordered<Svc, S>
where
Svc: Service<S::Item>,
S: Stream,
type Item = Result<<Svc as Service<<S as Stream>::Item>>::Response, <Svc as Service<<S as Stream>::Item>>::Error>;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>