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 AppService
pub fn dispatch_request(
&mut self,
request: Request<RequestBody>
) -> AppServiceFuture
[src]
pub fn dispatch_request(
&mut self,
request: Request<RequestBody>
) -> AppServiceFuture
Trait Implementations
impl Debug for AppService
[src]
impl Debug for AppService
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Service for AppService
[src]
impl Service for AppService
type 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::Future
Calls this Service
with a request, returning a Future
of the response.
Auto Trait Implementations
impl Send for AppService
impl Send for AppService
impl Sync for AppService
impl Sync for AppService