Struct ajars_actix_web::actix_web::dev::AppService [−][src]
pub struct AppService { /* fields omitted */ }
Expand description
Application configuration
Implementations
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), ServiceRequest, ServiceResponse<AnyBody>, Error, ()>>
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), ServiceRequest, ServiceResponse<AnyBody>, Error, ()>>
Returns default handler factory.
pub fn register_service<F, S>(
&mut self,
rdef: ResourceDef,
guards: Option<Vec<Box<dyn Guard + 'static, Global>, Global>>,
factory: F,
nested: Option<Rc<ResourceMap>>
) where
S: ServiceFactory<ServiceRequest, Response = ServiceResponse<AnyBody>, Error = Error, Config = (), InitError = ()> + 'static,
F: IntoServiceFactory<S, ServiceRequest>,
pub fn register_service<F, S>(
&mut self,
rdef: ResourceDef,
guards: Option<Vec<Box<dyn Guard + 'static, Global>, Global>>,
factory: F,
nested: Option<Rc<ResourceMap>>
) where
S: ServiceFactory<ServiceRequest, Response = ServiceResponse<AnyBody>, Error = Error, Config = (), InitError = ()> + 'static,
F: IntoServiceFactory<S, ServiceRequest>,
Register HTTP service.