objects which encapsulate state and behavior, they communicate
exclusively by exchanging messages. Actori actors are implemented
on top of Tokio. Multiple actors can run in
same thread. Actors can run in multiple threads using the
Arbiter API. Actors exchange typed
- User Guide
- Chat on gitter
- GitHub repository
- Cargo package
- Minimum supported Rust version: 1.39 or later
- Async/Sync actors.
- Actor communication in a local/thread context.
- Using Futures for asynchronous message handling.
- HTTP1/HTTP2 support (actori-web)
- Actor supervision.
- Typed messages (No
Anytype). Generic messages are allowed.
resolver- enables dns resolver actor,
At the moment actori uses
While it provides minimum overhead, it has its own limits:
- You cannot use tokio's async file I/O, as it relies on blocking calls that are not available
tokio::ioare the same as file I/O in that regard and cannot be used in asynchronous manner in actori.
A configurable source of time.
Sync Actors support
A helper type for representing different types of message responses.
The address of an actor.
Arbiters provide an asynchronous execution environment for actors, functions and futures. When an Arbiter is created, it spawns a new OS thread, and hosts an event loop. Some Arbiter functions execute on the current thread.
An actor execution context.
A helper type that implements the
Helper type for representing different type of message responses
A handle to a spawned future.
System is a runtime manager.
Helper object that runs System's event loop
A weakly referenced counterpart to
Actor execution state
The errors that can occur during the message delivery process.
Actors are objects which encapsulate state and behavior.
Actor execution context.
Asynchronous execution context.
Describes how to handle messages of a specific type.
Represent message that can be handled by an actor.
Actors with the ability to restart after failure.
Starts the system and executes the supplied future.
Spawns a future on the current arbiter.
A specialized actor future for asynchronous message handling.
A specialized future for asynchronous message handling.