Crate actix[−][src]
Actix is a rust actors framework.
Actors are objects
which encapsulate state and behavior, they communicate exclusively
by exchanging messages. Actix actors are implemented on top of Tokio.
Multiple actors could run in same thread. Actors could run in multiple
threads with support of Arbiter
.
Actors exchange typed messages.
Documentation
- User Guide
- Chat on gitter
- GitHub repository
- Cargo package
- Minimum supported Rust version: 1.26 or later
Features
- Async/Sync actors.
- Actor communication in a local/thread context.
- Using Futures for asynchronous message handling.
- HTTP1/HTTP2 support (actix-web)
- Actor supervision.
- Typed messages (No
Any
type). Generic messages are allowed.
Package feature
resolver
- enables dns resolver actor,actix::actors::resolver
signal
- enables signals handling actor
Re-exports
pub use fut::ActorFuture; |
pub use fut::ActorStream; |
pub use fut::WrapFuture; |
pub use fut::WrapStream; |
pub use registry::ArbiterService; |
pub use registry::Registry; |
pub use registry::SystemRegistry; |
pub use registry::SystemService; |
pub use sync::SyncArbiter; |
pub use sync::SyncContext; |
Modules
actors |
Helper actors |
dev |
The |
fut |
Custom |
io | |
msgs |
Actix system messages |
prelude |
The |
registry |
Actors registry |
sync |
Sync actors support |
utils |
Structs
ActorResponse |
Helper type for representing different type of message responses |
Addr |
Address of the actor |
Arbiter |
Event loop controller |
Context |
Actor execution context |
MessageResult |
Helper type that implements |
Recipient |
|
Response |
Helper type for representing different type of message responses |
SpawnHandle |
Spawned future handle. Could be used for cancelling spawned future. |
Supervisor |
Actor supervisor |
System |
System is an actor which manages runtime. |
SystemRunner |
Helper object that runs System's event loop |
Enums
ActorState |
Actor execution state |
MailboxError |
Set of error that can occurred during message delivery process |
Running |
Traits
Actor |
Actors are objects which encapsulate state and behavior. |
ActorContext |
Actor execution context |
AsyncContext |
Asynchronous execution context |
Handler |
Message handler |
Message |
Message type |
StreamHandler |
Stream handler |
Supervised |
Actors with ability to restart after failure |
Functions
run |
Start the System and execute supplied future. |
spawn |
Spawns a future on the current arbiter. |
Type Definitions
ResponseActFuture |
A specialized actor future for async message handler |
ResponseFuture |
A specialized future for async message handler |