pub fn default_service<F, U>(mut self, f: F) -> Self
    where
        F: IntoServiceFactory<U, ServiceRequest>,
        U: ServiceFactory<
                ServiceRequest,
                Config = (),
                Response = ServiceResponse,
                Error = Error,
            > + 'static,
        U::InitError: fmt::Debug,
    {
        // create and configure default resource
        self.default = Some(Rc::new(boxed::factory(f.into_factory().map_init_err(
            |e| log::error!("Can not construct default service: {:?}", e),
        ))));

        self
    }
/// Default service to be used if no matching route could be found.
///
/// If default resource is not registered, app's default resource is being used.
Default service to be used if no matching route could be found.
If default resource is not registered, app's default resource is being used.
Default service to be used if no matching route could be found . If default resource is not registered app ' s default resource is being used .
pub fn default_service<F, U>(mut self, f: F) -> Self
    where
        F: IntoServiceFactory<U, ServiceRequest>,
        U: ServiceFactory<
                ServiceRequest,
                Config = (),
                Response = ServiceResponse,
                Error = Error,
            > + 'static,
        U::InitError: fmt::Debug,
    {
        // create and configure default resource
        self.default = Some(Rc::new(boxed::factory(f.into_factory().map_init_err(
            |e| log::error!("Can not construct default service: {:?}", e),
        ))));
        self
    }
pub fn default_service < F , U > ( mut self , f : F ) -> Self where F : IntoServiceFactory < U , ServiceRequest > , U : ServiceFactory < ServiceRequest , Config = ( ) , Response = ServiceResponse , Error = Error , > + ' static , U :: InitError : fmt :: Debug , { // create and configure default resource self . default = Some ( Rc :: new ( boxed :: factory ( f . into_factory ( ) . map_init_err ( | e | log :: error ! ( " " e ) , ) ) ) ) ; self }
Default service to be used if no matching route could be found.
Default service to be used if no matching route could be found .
mut self
f
F
mut self
f
F