/// Update or create router.
///
/// Returns `true` if the router already existed.
Update or create router.
Returns `true` if the router already existed.
Update or create router . Returns ` true ` if the router already existed .
pub fn update_router(&self, config: RouterConfig) -> bool {
        let router = Router::new(
            config,
            Arc::clone(&self.resolver),
            Arc::clone(&self.connection_pool),
        );
        self.routers
            .write()
            .insert(router.name().to_string(), Arc::new(router))
            .is_some()
    }
pub fn update_router ( & self , config : RouterConfig ) -> bool { let router = Router :: new ( config , Arc :: clone ( & self . resolver ) , Arc :: clone ( & self . connection_pool ) , ) ; self . routers . write ( ) . insert ( router . name ( ) . to_string ( ) , Arc :: new ( router ) ) . is_some ( ) }
Update or create router.
Update or create router .
&self
config
RouterConfig