pub trait RosService {
type Request: RosMessage;
type Reply: RosMessage;
const SERVICE_NAME: &'static str;
const SERVICE_HASH: &'static str;
}Expand description
Trait for ROS service types
Associates request and reply message types with service metadata.
Required Associated Constants§
Sourceconst SERVICE_NAME: &'static str
const SERVICE_NAME: &'static str
Full ROS service type name in DDS format
Example: "std_srvs::srv::dds_::Empty_"
Sourceconst SERVICE_HASH: &'static str
const SERVICE_HASH: &'static str
RIHS type hash for the service
Required Associated Types§
Sourcetype Request: RosMessage
type Request: RosMessage
The request message type
Sourcetype Reply: RosMessage
type Reply: RosMessage
The reply message type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.