Skip to main content

RawCancelCallback

Type Alias RawCancelCallback 

Source
pub type RawCancelCallback = unsafe extern "C" fn(goal_id: *const GoalId, status: GoalStatus, context: *mut c_void) -> CancelResponse;
Expand description

Raw action cancel callback.

ยงSafety

  • goal_id is valid for the duration of the call

Returns a CancelResponse value (0=Ok, 1=Rejected, 2=UnknownGoal, 3=GoalTerminated).