Struct tsukuyomi::App [−][src]
pub struct App { /* fields omitted */ }The main type which represents an HTTP application.
Methods
impl App[src]
impl Apppub fn new_service(&self) -> AppService[src]
pub fn new_service(&self) -> AppServiceCreates a new AppService to manage a session.
impl App[src]
impl Apppub fn builder() -> AppBuilder[src]
pub fn builder() -> AppBuilderCreates a builder object for constructing an instance of this type.
Trait Implementations
impl NewService for App[src]
impl NewService for Apptype 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 be returned by Services.
type Service = AppService
The resolved Service from new_service().
type InitError = CritError
The error type that can be returned when creating a new Service.
type Future = FutureResult<Self::Service, Self::InitError>
The future returned from new_service of a Service.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate a new Service.
impl Debug for App[src]
impl Debug for Appfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for App[src]
impl Clone for App