You definitely won't find this in the rust book. #rustlang #coding #rustprogramming

preview_player
Показать описание
Actix is a framework to write concurrent Rust applications.

It treats "actors" as universal primitives of concurrent computation.

And, it uses messages to communicate.

The message passing is asynchronous, meaning that the sender can continue its work without waiting for the message to be received.

An actor is just a struct that implements the Actor trait

Each actor needs to implement a handler to receive a new message type.

Subscribe to learn more about Rust and software engineering
Рекомендации по теме
Комментарии
Автор

It is a little disappointing that there is no async in the Rust Book. I think Rust 2024 is bring more asyn support to the std library, so hopefully it will be added to the book.

MikeM