Actix
Actor framework for Rust
...System.run() starts the Tokio event loop, and will finish once the System actor receives the SystemExit message. Spawning a new actor is achieved via the start and create methods of the Actor trait. It provides several different ways of creating actors; for details, check the docs. You can implement the started, stopping and stop methods of the Actor trait. started gets called when the actor starts and stops when the actor finishes. Check the API docs for more information on the actor lifecycle. An Actor communicates with another Actor by sending messages. In actix all messages are typed. Let's define a simple Sum message with two usize parameters and an actor which will accept this message and return the sum of those two numbers. ...