Struct finchers_runtime::server::Server
[−]
[src]
pub struct Server<S> { /* fields omitted */ }
A builder for running the HTTP server based on given HTTP service and configuration.
Methods
impl<S> Server<S> where
S: NewHttpService<RequestBody = RequestBody> + Send + Sync + 'static,
S::ResponseBody: Payload + Send + 'static,
<S::ResponseBody as Payload>::Data: Send,
<S::ResponseBody as Payload>::Error: Into<Error>,
S::Service: Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Error>,
<S::Service as HttpService>::Future: Send + 'static,
S::InitError: Fail,
[src]
S: NewHttpService<RequestBody = RequestBody> + Send + Sync + 'static,
S::ResponseBody: Payload + Send + 'static,
<S::ResponseBody as Payload>::Data: Send,
<S::ResponseBody as Payload>::Error: Into<Error>,
S::Service: Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Error>,
<S::Service as HttpService>::Future: Send + 'static,
S::InitError: Fail,
pub fn new(new_service: S, config: Config) -> Server<S>
[src]
Create a new launcher from given service.
pub fn launch(self)
[src]
Start the HTTP server with given configurations