pub type ThreadSendCallbackType = extern "C" fn(*const c_void, ThreadReceiveMsg) -> bool;
Callback for sending messages from thread to main thread