[−][src]Trait tower::util::ServiceExt
An extension trait for Service
s that provides a variety of convenient
adapters
Provided methods
ⓘImportant traits for Ready<'a, T, Request>fn ready(&mut self) -> Ready<Self, Request>
ⓘImportant traits for Ready<'a, T, Request>
A future yielding the service when it is ready to accept a request.
ⓘImportant traits for Oneshot<S, Req>fn oneshot(self, req: Request) -> Oneshot<Self, Request>
ⓘImportant traits for Oneshot<S, Req>
Consume this Service
, calling with the providing request once it is ready.
fn call_all<S>(self, reqs: S) -> CallAll<Self, S> where
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
Process all requests from the given Stream
, and produce a Stream
of their responses.
This is essentially Stream<Item = Request>
+ Self
=> Stream<Item = Response>
. See the
documentation for CallAll
for details.