I need to get an idea how to solve this problem the Rust way, because my program is panicking.
My lib has a loop for checking events and run closures. At current I\'m