FuriThreadStateCallback

Type Alias FuriThreadStateCallback 

Source
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 state
  • state (direction in) - identifier of the state the thread has transitioned to
  • context (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§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut FuriThread, FuriThreadState, *mut c_void))

Some value of type T.