Struct tower_web::middleware::deflate::DeflateService [−][src]
pub struct DeflateService<S> { /* fields omitted */ }Deflates the inner service's response bodies.
Trait Implementations
impl<S: Debug> Debug for DeflateService<S>[src]
impl<S: Debug> Debug for DeflateService<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S, RequestBody, ResponseBody> Service for DeflateService<S> where
S: Service<Request = Request<RequestBody>, Response = Response<ResponseBody>>,
ResponseBody: BufStream,
S::Error: Error, [src]
impl<S, RequestBody, ResponseBody> Service for DeflateService<S> where
S: Service<Request = Request<RequestBody>, Response = Response<ResponseBody>>,
ResponseBody: BufStream,
S::Error: Error, type Request = Request<RequestBody>
Requests handled by the service.
type Response = Response<CompressStream<ResponseBody>>
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = ResponseFuture<S::Future>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, request: Self::Request) -> Self::Future[src]
fn call(&mut self, request: Self::Request) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.
Auto Trait Implementations
impl<S> Send for DeflateService<S> where
S: Send,
impl<S> Send for DeflateService<S> where
S: Send, impl<S> Sync for DeflateService<S> where
S: Sync,
impl<S> Sync for DeflateService<S> where
S: Sync,