[][src]Struct actix_web::dev::AppService

pub struct AppService { /* fields omitted */ }

Application configuration

Implementations

impl AppService[src]

pub fn is_root(&self) -> bool[src]

Check if root is being configured

pub fn config(&self) -> &AppConfig[src]

Service configuration

pub fn default_service(
    &self
) -> Rc<BoxServiceFactory<(), ServiceRequest, ServiceResponse, Error, ()>>
[src]

Default resource

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 = ServiceRequest, Response = ServiceResponse, Error = Error, InitError = ()> + 'static, 
[src]

Register http service

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,