pub trait ActionTypeDescription {
// Required methods
fn type_description() -> TypeDescriptionMsg;
fn action_type_name() -> MessageTypeName;
// Provided method
fn compute_hash() -> Result<String> { ... }
}Expand description
Trait for ROS2 action types that can provide a type description for hash computation
This trait is separate from ActionMsg (which is for runtime FFI) and only
requires TypeDescription on Goal/Result/Feedback types.
Required Methods§
Sourcefn type_description() -> TypeDescriptionMsg
fn type_description() -> TypeDescriptionMsg
Get the type description for this action
The action type description has fields:
goal: Reference to the Goal message typeresult: Reference to the Result message typefeedback: Reference to the Feedback message typesend_goal_service: Reference to the SendGoal serviceget_result_service: Reference to the GetResult servicefeedback_message: Reference to the FeedbackMessage type
Sourcefn action_type_name() -> MessageTypeName
fn action_type_name() -> MessageTypeName
Get the action type name information
Provided Methods§
Sourcefn compute_hash() -> Result<String>
fn compute_hash() -> Result<String>
Compute the RIHS01 type hash for this action
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.