Struct tsukuyomi::app::service::AppService [−][src]
pub struct AppService { /* fields omitted */ }A Service representation of the application, created by App.
Methods
impl AppService[src]
impl AppServicepub fn dispatch_request(
&mut self,
request: Request<RequestBody>
) -> AppServiceFuture[src]
pub fn dispatch_request(
&mut self,
request: Request<RequestBody>
) -> AppServiceFutureTrait Implementations
impl Debug for AppService[src]
impl Debug for AppServicefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Service for AppService[src]
impl Service for AppServicetype ReqBody = Body
The Payload body of the http::Request.
type ResBody = Body
The Payload body of the http::Response.
type Error = CritError
The error type that can occur within this Service. Read more
type Future = AppServiceFuture
The Future returned by this Service.
fn call(&mut self, request: Request<Self::ReqBody>) -> Self::Future[src]
fn call(&mut self, request: Request<Self::ReqBody>) -> Self::FutureCalls this Service with a request, returning a Future of the response.
Auto Trait Implementations
impl Send for AppService
impl Send for AppServiceimpl Sync for AppService
impl Sync for AppService