Struct finchers::server::ServiceBuilder[][src]

pub struct ServiceBuilder<S> { /* fields omitted */ }

A builder of HTTP service.

Methods

impl<S> ServiceBuilder<S> where
    S: NewService
[src]

Creates a new ServerBuilder from the specified NewService.

Wraps the inner service into the specified middleware.

impl<S, Bd> ServiceBuilder<S> where
    S: NewService<Request = Request<Body>, Response = Response<Bd>> + Send + Sync + 'static,
    S::Error: Into<Box<Error + Send + Sync + 'static>>,
    S::InitError: Into<Box<Error + Send + Sync + 'static>>,
    S::Service: Send,
    S::Future: Send + 'static,
    <S::Service as Service>::Future: Send + 'static,
    Bd: Payload
[src]

Start the server with the specified configuration.

Start the server with the specified configuration and shutdown signal.

Trait Implementations

impl<S: Debug> Debug for ServiceBuilder<S>
[src]

Formats the value using the given formatter. Read more

impl<S> NewService for ServiceBuilder<S> where
    S: NewService
[src]

Requests handled by the service

Responses given by the service

Errors produced by the service

The Service value created by this factory

Errors produced while building a service.

The future of the Service instance.

Create and return a new service value asynchronously.

Auto Trait Implementations

impl<S> Send for ServiceBuilder<S> where
    S: Send

impl<S> Sync for ServiceBuilder<S> where
    S: Sync