Struct actix_web::dev::Application
[−]
[src]
pub struct Application<S> { /* fields omitted */ }
Application
Methods
impl Application<()>
[src]
fn default<T: ToString>(prefix: T) -> ApplicationBuilder<()>
[src]
Create default ApplicationBuilder
with no state
impl<S> Application<S> where
S: 'static,
[src]
S: 'static,
fn builder<T: ToString>(prefix: T, state: S) -> ApplicationBuilder<S>
[src]
Create application builder with specific state. State is shared with all
routes within same application and could be
accessed with HttpContext::state()
method.
Trait Implementations
impl<S: 'static> From<ApplicationBuilder<S>> for Application<S>
[src]
fn from(builder: ApplicationBuilder<S>) -> Application<S>
[src]
Performs the conversion.