Struct ntex::web::dev::WebServiceConfig [−][src]
pub struct WebServiceConfig<Err: ErrorRenderer> { /* fields omitted */ }
Expand description
Application service configuration
Implementations
impl<Err: ErrorRenderer> WebServiceConfig<Err>
[src]
impl<Err: ErrorRenderer> WebServiceConfig<Err>
[src]pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), WebRequest<Err>, WebResponse, Err::Container, ()>>
[src]
pub fn default_service(
&self
) -> Rc<BoxServiceFactory<(), WebRequest<Err>, WebResponse, Err::Container, ()>>
[src]Default resource
pub fn set_service_data(&self, extensions: &mut Extensions) -> bool
[src]
pub fn set_service_data(&self, extensions: &mut Extensions) -> bool
[src]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 = WebRequest<Err>, Response = WebResponse, Error = Err::Container, InitError = ()> + 'static,
[src]
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 = WebRequest<Err>, Response = WebResponse, Error = Err::Container, InitError = ()> + 'static,
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self