Struct ntex::web::dev::WebServiceConfig [−][src]
pub struct WebServiceConfig<Err: ErrorRenderer> { /* fields omitted */ }
Expand description
Application service configuration
Implementations
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), WebRequest<Err>, WebResponse, Err::Container, ()>>
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), WebRequest<Err>, WebResponse, Err::Container, ()>>
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, WebRequest<Err>>,
S: ServiceFactory<WebRequest<Err>, Response = WebResponse, Error = Err::Container, 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, WebRequest<Err>>,
S: ServiceFactory<WebRequest<Err>, Response = WebResponse, Error = Err::Container, InitError = ()> + 'static,
Register http service
Auto Trait Implementations
impl<Err> !RefUnwindSafe for WebServiceConfig<Err>
impl<Err> !Send for WebServiceConfig<Err>
impl<Err> !Sync for WebServiceConfig<Err>
impl<Err> Unpin for WebServiceConfig<Err>
impl<Err> !UnwindSafe for WebServiceConfig<Err>
Blanket Implementations
Mutably borrows from an owned value. Read more
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