Struct serv::server::Server
[−]
[src]
pub struct Server { /* fields omitted */ }
Methods
impl Server
[src]
pub fn new() -> Self
[src]
pub fn push(&mut self, method: Method, path: &str, service: HyperService)
[src]
pub fn push_exp(&mut self, method: Method, regexp: &str, service: HyperService)
[src]
pub fn run_uds(
self,
_url: Url,
_handle: Handle,
_is_http2: bool
) -> Box<Future<Item = (), Error = Error>>
[src]
self,
_url: Url,
_handle: Handle,
_is_http2: bool
) -> Box<Future<Item = (), Error = Error>>
pub fn run(
self,
url: Url,
handle: Handle
) -> Box<Future<Item = (), Error = Error>>
[src]
self,
url: Url,
handle: Handle
) -> Box<Future<Item = (), Error = Error>>
Trait Implementations
impl Default for Server
[src]
impl Service for Server
[src]
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item = Self::Response, Error = Self::Error>>
The future response value.
fn call(&self, req: Request) -> Self::Future
[src]
Process the request and return the response asynchronously.