[−][src]Trait swagger::client::Service
Common trait for swagger based client middleware
Associated Types
type ReqBody: Payload
Request body taken by client.
Likely either hyper::Body
, hyper::Chunk
or swagger::ContextualPayload
.
type Future: Future
Future response from client service.
Likely: Future<Item=hyper::Response<hyper::Body>, Error=hyper::Error>
Required methods
Loading content...Implementations on Foreign Types
impl<C, B> Service for Client<C, B> where
B: Payload + Send + 'static,
B::Data: Send,
C: Connect + Sync + 'static,
C::Transport: 'static,
C::Future: 'static,
[src]
B: Payload + Send + 'static,
B::Data: Send,
C: Connect + Sync + 'static,
C::Transport: 'static,
C::Future: 'static,
type ReqBody = B
type Future = ResponseFuture
fn request(&self, req: Request<Self::ReqBody>) -> Self::Future
[src]
Implementors
impl<T, C> Service for DropContextService<T, C> where
C: Send + 'static,
T: Service<ReqBody = Body>,
[src]
C: Send + 'static,
T: Service<ReqBody = Body>,