Crate actix [−] [src]
Actix is a rust actor framework.
Actors are objects
which encapsulate state and behavior, they communicate exclusively
by exchanging messages. Actix actors are implemented on top of Tokio.
Mutiple actors could run in same thread. Actors could run in multiple threads
with support of Arbiter
.
Actors exchange typed messages.
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. - Minimum supported Rust version: 1.20 or later
Reexports
pub use fut::ActorFuture; |
pub use fut::ActorStream; |
pub use fut::WrapFuture; |
pub use fut::WrapStream; |
pub use sync::SyncContext; |
pub use sync::SyncArbiter; |
Modules
actors |
Helper actors |
dev |
The |
fut |
Custom |
msgs |
Actix system messages |
prelude |
The |
queue | |
sync |
Sync actors support |
Structs
Address |
Address of the actor |
Arbiter |
Event loop controller |
Context |
Actor execution context |
FramedContext |
Actor execution context for Framed object |
Registry |
Actors registry |
Request |
|
Response |
|
SpawnHandle |
Spawned future handle. Could be used for cancelling spawned future. |
Supervisor |
Actor supervisor |
SyncAddress |
|
System |
System is an actor which manages process. |
SystemRegistry |
System wide actors registry |
SystemRunner |
Helper object that runs System's event loop |
Enums
ActorState |
Actor execution state |
Traits
Actor |
Actors are objects which encapsulate state and behavior. |
ActorAddress |
Trait give access to actor's address |
ActorContext |
Actor execution context |
ArbiterService |
Trait defines arbiter's service. |
AsyncContext |
Asynchronous execution context |
ContextFutureSpawner |
Helper trait which can spawn future into actor's context |
FramedActor |
Actor trait that allows to handle |
Handler |
Message handler |
ResponseType |
Message response type |
Subscriber |
Subscriber trait describes ability of actor to receive one specific message |
Supervised |
Actors with ability to restart after failure |
SystemService |
Trait defines system's service. |
ToEnvelope |
Converter trait, packs message to suitable envelope |
Type Definitions
MessageResult | |
ResponseFuture |