pub trait Ros2Adapter {
// Required methods
fn supported_types(&self) -> &[Ros2MessageHint];
fn negotiate(&self, ros_type: &str) -> Option<&Ros2MessageHint>;
}Expand description
Adapter interface for ROS 2 type negotiation.
Required Methods§
Sourcefn supported_types(&self) -> &[Ros2MessageHint]
fn supported_types(&self) -> &[Ros2MessageHint]
Returns supported type mappings.
Sourcefn negotiate(&self, ros_type: &str) -> Option<&Ros2MessageHint>
fn negotiate(&self, ros_type: &str) -> Option<&Ros2MessageHint>
Negotiates a preferred mapping for one ROS type.