Actor framework for Rust. Actix uses the Tokio runtime. System::new() creates a new event loop. 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. Here we use the #[actix::main] attribute as an easier way to start our System and drive our main function.

Features

  • Async and sync actors
  • Actor communication in a local/thread context
  • Uses futures for asynchronous message handling
  • Actor supervision
  • Typed messages (No Any type)
  • Runs on stable Rust 1.57+

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

Apache License V2.0

Follow Actix

Actix Web Site

Other Useful Business Software
Securing the Cloud Made Easy Icon
Securing the Cloud Made Easy

Multi-cloud security delivered — now and in the future.

Designed for organizations operating in the cloud who need complete, centralized visibility of their entire cloud estate and want more time and resources dedicated to remediating the actual risks that matter, Orca Security is an agentless cloud Security Platform that provides security teams with 100% coverage their entire cloud environment.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Actix!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Frameworks

Registered

2023-03-16