I saw a post[1] of making asynchronous chat server with nginx like architecture. But libraries used there are outdated. So i want to make something similar but using tokio. In that post autor made mio eventloop, but i can't see any events in tokio, even tought tokio described as event driven library. How can i implement/use eventloop similar way to original post, nginx like?
The thing to understand is that Tokio isn't an event loop as you might understand it from other languages. It uses the async/await feature which lets you write imperative code, and then Rust automatically converts it into code using an invisible event loop.
If you wanted to access the event loop directly, you would need to use mio instead, and you wouldn't be able to use async/await.