[−][src]Function rosrust::singleton::service
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, 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,