Struct chiisai::Chiisai [−][src]
pub struct Chiisai { /* fields omitted */ }
Methods
impl Chiisai
[src]
impl Chiisai
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn routes(
self,
routes: HashMap<(Method, String), Box<Route<Method = Method>>>
) -> Self
[src]
pub fn routes(
self,
routes: HashMap<(Method, String), Box<Route<Method = Method>>>
) -> Self
pub fn port(self, port_num: u64) -> Self
[src]
pub fn port(self, port_num: u64) -> Self
pub fn run(self) -> Result<(), Error>
[src]
pub fn run(self) -> Result<(), Error>
Trait Implementations
impl<'c> Service for &'c Chiisai
[src]
impl<'c> Service for &'c Chiisai
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]
fn call(&self, req: Request) -> Self::Future
Process the request and return the response asynchronously.