Struct hyper_json_server::JsonServer
[−]
[src]
pub struct JsonServer<S> { pub inner: Arc<S>, }
Fields
inner: Arc<S>
Trait Implementations
impl<S: Service + JsonService + 'static> Service for JsonServer<S>
[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 = Response, Error = Error>>
The future response value.
fn call(&self, req: Request) -> Self::Future
[src]
Process the request and return the response asynchronously.
Auto Trait Implementations
impl<S> Send for JsonServer<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Sync for JsonServer<S> where
S: Send + Sync,
S: Send + Sync,