How to project event driven library?

Wasn't that what you asked and got an answer in How to get pointer from embedded to owner??

I suggest learning more about Rust ownership system or else you'll continue stumbling.