pub type FuriThreadStateCallback = Option<unsafe extern "C" fn(thread: *mut FuriThread, state: FuriThreadState, context: *mut c_void)>;Expand description
State change callback function pointer type.
The function to be used as a state callback MUST follow this signature.
§Arguments
thread(direction in) - to the FuriThread instance that changed the statestate(direction in) - identifier of the state the thread has transitioned tocontext(direction in, out) - pointer to a user-specified object
Aliased Type§
pub enum FuriThreadStateCallback {
None,
Some(unsafe extern "C" fn(*mut FuriThread, FuriThreadState, *mut c_void)),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut FuriThread, FuriThreadState, *mut c_void))
Some value of type T.