pub fn register_function<F>(f: F) -> u64where F: Fn(UObjectHandle, *mut u8, *mut u8) + Send + Sync + 'static,
Register a Rust function callback and return its unique callback ID.