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".

Implementations on Foreign Types§

Source§

impl RosService for AddDiagnostics

Source§

const SERVICE_NAME: &'static str = "diagnostic_msgs::srv::dds_::AddDiagnostics_"

Source§

const SERVICE_HASH: &'static str = "TypeHashNotSupported"

Source§

type Request = AddDiagnosticsRequest

Source§

type Reply = AddDiagnosticsResponse

Source§

impl RosService for SelfTest

Source§

const SERVICE_NAME: &'static str = "diagnostic_msgs::srv::dds_::SelfTest_"

Source§

const SERVICE_HASH: &'static str = "TypeHashNotSupported"

Source§

type Request = SelfTestRequest

Source§

type Reply = SelfTestResponse

Implementors§