Module actix::prelude

source ·
Expand description

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;
pub use actors;
pub use dev;
pub use fut;
pub use io;
pub use msgs;
pub use utils::Condition;
pub use utils::IntervalFunc;
pub use utils::TimerFunc;

Structs

Helper type for representing different type of message responses
Address of the actor
Event loop controller
Actor execution context
Helper type that implements MessageResponse trait
Recipient type allows to send one specific message to an actor.
RecipientRequest is a Future which represents asynchronous message sending process.
Request is a Future which represents asynchronous message sending process.
Helper type for representing different type of message responses
Spawned future handle. Could be used for cancelling spawned future.
Actor supervisor
System is an actor which manages runtime.

Enums

Actor execution state
Set of error that can occurred during message delivery process

Traits

Actors are objects which encapsulate state and behavior.
Actor execution context
Asynchronous execution context
Helper trait which can spawn future into actor’s context
Message handler
Message type
Stream handler
Actors with ability to restart after failure

Type Definitions

A specialized actor future for async message handler
A specialized future for async message handler