Skip to main content

RawGoalCallback

Type Alias RawGoalCallback 

Source
pub type RawGoalCallback = unsafe extern "C" fn(*const GoalId, *const u8, usize, *mut c_void) -> GoalResponse;
Expand description

Raw action goal callback that receives CDR bytes without deserialization.

ยงSafety

  • goal_id is valid for the duration of the call
  • goal_data is valid for goal_len bytes

Returns a GoalResponse value (0=Reject, 1=AcceptAndExecute, 2=AcceptAndDefer).