I have one idea about solving. It is creating a bool value in swift and giving its address to Rust. Then setup a timer in swift and check the bool value continuously. When it's time, change value of bool from its address in Rust and it will trigger the function. This scenario could work? How can I solve this problem in efficient way?
Secondly, is there any original type of bitmap in rust? I've seen many crates. Which one do you recommend?