Struct actix_web::dev::AppService [−][src]
pub struct AppService { /* fields omitted */ }
Expand description
Application configuration
Implementations
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), ServiceRequest, ServiceResponse, Error, ()>>
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), ServiceRequest, ServiceResponse, Error, ()>>
Default resource
Set global route data
pub fn register_service<F, S>(
&mut self,
rdef: ResourceDef,
guards: Option<Vec<Box<dyn Guard>>>,
factory: F,
nested: Option<Rc<ResourceMap>>
) where
F: IntoServiceFactory<S>,
S: ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse, Error = Error, InitError = ()> + 'static,
pub fn register_service<F, S>(
&mut self,
rdef: ResourceDef,
guards: Option<Vec<Box<dyn Guard>>>,
factory: F,
nested: Option<Rc<ResourceMap>>
) where
F: IntoServiceFactory<S>,
S: ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse, Error = Error, InitError = ()> + 'static,
Register http service
Auto Trait Implementations
impl !RefUnwindSafe for AppService
impl !Send for AppService
impl !Sync for AppService
impl Unpin for AppService
impl !UnwindSafe for AppService
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more