Function rosrust::singleton::service

source ยท
pub fn service<T, F>(service: &str, handler: F) -> Result<Service>
where T: ServicePair, F: Fn(T::Request) -> Result<T::Response, String> + Send + Sync + 'static,