Struct conduit_hyper::Service[][src]

pub struct Service<H> { /* fields omitted */ }

Serve a conduit::Handler on a thread pool

Methods

impl<H: Handler> Service<H>
[src]

Create a multi-threaded Service from a Handler

Run the Service bound to a given SocketAddr

Trait Implementations

impl<H> Clone for Service<H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<H: Handler> NewService for Service<H>
[src]

The Payload body of the http::Request.

The Payload body of the http::Response.

The error type that can be returned by Services.

The resolved Service from new_service().

The future returned from new_service of a Service.

The error type that can be returned when creating a new Service.

Create a new Service.

impl<H: Handler> Service for Service<H>
[src]

The Payload body of the http::Request.

The Payload body of the http::Response.

The error type that can occur within this Service. Read more

The Future returned by this Service.

Returns a future which buffers the response body and then calls the conduit handler from a thread pool

Auto Trait Implementations

impl<H> Send for Service<H> where
    H: Send + Sync

impl<H> Sync for Service<H> where
    H: Send + Sync