Skip to main content

RawAcceptedCallback

Type Alias RawAcceptedCallback 

Source
pub type RawAcceptedCallback = unsafe extern "C" fn(goal_id: *const GoalId, context: *mut c_void);
Expand description

Raw accepted-goal hook.

Called immediately after the accept reply has been sent to the client (i.e. after ActionServerCore::accept_goal). Used by the C API so that the user’s accepted_callback can run after the client has observed the accept, without blocking the accept reply on a long-running execution inside the goal-decision callback.

§Safety

  • goal_id is valid for the duration of the call.