Module actix::prelude [−][src]
The actix prelude
The purpose of this module is to alleviate imports of many common actix traits by adding a glob import to the top of actix heavy modules:
use actix::prelude::*;
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::SystemService; |
pub use sync::SyncArbiter; |
pub use sync::SyncContext; |
Modules
| actix |
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 |
|
| RecipientRequest |
|
| Request |
|
| 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. |
Enums
| ActorState |
Actor execution state |
| MailboxError |
Set of error that can occurred during message delivery process |
| Running | |
| SendError |
Traits
| Actor |
Actors are objects which encapsulate state and behavior. |
| ActorContext |
Actor execution context |
| AsyncContext |
Asynchronous execution context |
| ContextFutureSpawner |
Helper trait which can spawn future into actor's context |
| Handler |
Message handler |
| Message |
Message type |
| StreamHandler |
Stream handler |
| Supervised |
Actors with ability to restart after failure |
Type Definitions
| ResponseActFuture |
A specialized actor future for async message handler |
| ResponseFuture |
A specialized future for async message handler |