Struct actix_web::web::ServiceConfig [−][src]
pub struct ServiceConfig { /* fields omitted */ }
Expand description
Service config is used for external configuration. Part of application configuration could be offloaded to set of external methods. This could help with modularization of big application configuration.
Implementations
Set application data. Application data could be accessed
by using Data<T>
extractor where T
is data type.
This is same as App::data()
method.
Set arbitrary data item.
This is same as App::data()
method.
Configure route for a specific path.
This is same as App::route()
method.
Register http service.
This is same as App::service()
method.
Register an external resource.
External resources are useful for URL generation purposes only
and are never considered for matching at request time. Calls to
HttpRequest::url_for()
will work as expected.
This is same as App::external_service()
method.
Auto Trait Implementations
impl !RefUnwindSafe for ServiceConfig
impl !Send for ServiceConfig
impl !Sync for ServiceConfig
impl Unpin for ServiceConfig
impl !UnwindSafe for ServiceConfig
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