Struct finchers::Server
[−]
[src]
pub struct Server<E> { /* fields omitted */ }
The factory of HTTP service
Methods
impl<E: NewEndpoint> Server<E>
[src]
fn new(endpoint: E) -> Self
[src]
Create a new instance of Server
from a NewEndpoint
fn bind<S: Into<String>>(self, addr: S) -> Self
[src]
Set the listener address of the service
fn num_workers(self, n: usize) -> Self
[src]
Set the number of worker threads
impl<E> Server<E> where
E: NewEndpoint + Send + Sync + 'static,
E::Item: Responder,
E::Error: Responder,
[src]
E: NewEndpoint + Send + Sync + 'static,
E::Item: Responder,
E::Error: Responder,