Struct tsukuyomi::app::App [−][src]
pub struct App { /* fields omitted */ }
The main type which represents an HTTP application.
Methods
impl App
[src]
impl App
pub fn new_service(&self) -> AppService
[src]
pub fn new_service(&self) -> AppService
Creates a new AppService
to manage a session.
impl App
[src]
impl App
pub fn builder() -> AppBuilder
[src]
pub fn builder() -> AppBuilder
Creates a builder object for constructing an instance of this type.
Trait Implementations
impl NewService for App
[src]
impl NewService for App
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 be returned by Service
s.
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::Future
Create a new Service
.
impl Debug for App
[src]
impl Debug for App
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 Clone for App
[src]
impl Clone for App