Skip to content

Commit 213f891

Browse files
committed
Add GetResultService methods to ActionImpl
1 parent 249d5ec commit 213f891

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rosidl_runtime_rs/src/traits.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,10 @@ pub trait ActionImpl: 'static + Action {
204204

205205
/// Create a feedback message with the given goal ID and contents.
206206
fn create_feedback_message(goal_id: &[u8; 16], feedback: &<<Self as Action>::Feedback as Message>::RmwMsg) -> <Self::FeedbackMessage as Message>::RmwMsg;
207+
208+
/// Get the UUID of a result request.
209+
fn get_result_request_uuid(request: &<<Self::GetResultService as Service>::Request as Message>::RmwMsg) -> [u8; 16];
210+
211+
/// Sets the `status` field of a result response.
212+
fn set_result_response_status(response: &mut <<Self::GetResultService as Service>::Response as Message>::RmwMsg, status: i8);
207213
}

0 commit comments

Comments
 (0)