[][src]Module actix::prelude

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

ActorResponse

A helper type for representing different types of message responses.

Addr

The address of an actor.

Arbiter

An event loop controller.

Context

An actor execution context.

MessageResult

A helper type that implements the MessageResponse trait.

Recipient

The Recipient type allows to send one specific message to an actor.

RecipientRequest

A Future which represents an asynchronous message sending process.

Request

A Future which represents an asynchronous message sending process.

Response

Helper type for representing different type of message responses

SpawnHandle

A handle to a spawned future.

Supervisor

Actor supervisor

System

System is an actor which manages runtime.

Enums

ActorState

Actor execution state

MailboxError

The errors that can occur during the 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 a future into the actor's context.

Handler

Describes how to handle messages of a specific type.

Message

Represent message that can be handled by an actor.

StreamHandler

Stream handler

Supervised

Actors with the ability to restart after failure.

Type Definitions

ResponseActFuture

A specialized actor future for asynchronous message handling.

ResponseFuture

A specialized future for asynchronous message handling.