Skip to main content

RosService

Trait RosService 

Source
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§

Source

const SERVICE_NAME: &'static str

Full ROS service type name in DDS format

Example: "std_srvs::srv::dds_::Empty_"

Source

const SERVICE_HASH: &'static str

RIHS type hash for the service

Required Associated Types§

Source

type Request: RosMessage

The request message type

Source

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.

Implementors§