pub struct Server { /* private fields */ }
Implementations§
Trait Implementations§
source§impl NewService for Server
impl NewService for Server
§type Future = FutureResult<<Server as NewService>::Service, <Server as NewService>::InitError>
type Future = FutureResult<<Server as NewService>::Service, <Server as NewService>::InitError>
The future returned from
new_service
of a Service
.source§fn new_service(&self) -> Self::Future
fn new_service(&self) -> Self::Future
Create a new
Service
.source§impl Service for Server
impl Service for Server
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !Send for Server
impl !Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations§
source§impl<N, Ctx> MakeService<Ctx> for Nwhere
N: NewService,
impl<N, Ctx> MakeService<Ctx> for Nwhere
N: NewService,
§type ReqBody = <N as NewService>::ReqBody
type ReqBody = <N as NewService>::ReqBody
The
Payload
body of the http::Request
.§type ResBody = <N as NewService>::ResBody
type ResBody = <N as NewService>::ResBody
The
Payload
body of the http::Response
.§type Error = <N as NewService>::Error
type Error = <N as NewService>::Error
The error type that can be returned by
Service
s.§type Service = <N as NewService>::Service
type Service = <N as NewService>::Service
The resolved
Service
from new_service()
.§type Future = <N as NewService>::Future
type Future = <N as NewService>::Future
The future returned from
new_service
of a Service
.§type MakeError = <N as NewService>::InitError
type MakeError = <N as NewService>::InitError
The error type that can be returned when creating a new
Service
.source§fn poll_ready(
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>
fn poll_ready(
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>
source§fn make_service(&mut self, _: Ctx) -> <N as MakeService<Ctx>>::Future
fn make_service(&mut self, _: Ctx) -> <N as MakeService<Ctx>>::Future
Create a new
Service
.