Struct conduit_hyper::Service [−][src]
pub struct Service<H> { /* fields omitted */ }Methods
impl<H: Handler> Service<H>[src]
impl<H: Handler> Service<H>Trait Implementations
impl<H> Clone for Service<H>[src]
impl<H> Clone for Service<H>fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<H: Handler> NewService for Service<H>[src]
impl<H: Handler> NewService for Service<H>type ReqBody = Body
The Payload body of the http::Request.
type ResBody = Body
The Payload body of the http::Response.
type Error = Error
The error type that can be returned by Services.
type Service = Service<H>
The resolved Service from new_service().
type Future = Box<Future<Item = Self::Service, Error = Self::InitError> + Send>
The future returned from new_service of a Service.
type InitError = Error
The error type that can be returned when creating a new Service.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate a new Service.
impl<H: Handler> Service for Service<H>[src]
impl<H: Handler> Service for Service<H>type ReqBody = Body
The Payload body of the http::Request.
type ResBody = Body
The Payload body of the http::Response.
type Error = Error
The error type that can occur within this Service. Read more
type Future = Box<Future<Item = Response<Self::ResBody>, Error = Self::Error> + Send>
The Future returned by this Service.
fn call(&mut self, request: Request<Self::ReqBody>) -> Self::Future[src]
fn call(&mut self, request: Request<Self::ReqBody>) -> Self::FutureReturns a future which buffers the response body and then calls the conduit handler from a thread pool