Struct fanta::AppService
[−]
[src]
pub struct AppService<'a, T: Context + 'static> { /* fields omitted */ }
Methods
impl<'a, T: Context> AppService<'a, T>
[src]
pub fn new(app: &'a App<T>) -> AppService<'a, T>
[src]
Trait Implementations
impl<'a, T: Context> Service for AppService<'a, T>
[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, _request: Request) -> Box<Future<Item = Response, Error = Error>>
[src]
Process the request and return the response asynchronously.