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 crate::utils::Condition;Deprecated pub use crate::actors;pub use crate::dev;pub use crate::fut;pub use crate::fut::ActorFuture;pub use crate::fut::ActorFutureExt;pub use crate::fut::ActorStream;pub use crate::fut::ActorStreamExt;pub use crate::fut::ActorTryFuture;pub use crate::fut::ActorTryFutureExt;pub use crate::fut::WrapFuture;pub use crate::fut::WrapStream;pub use crate::io;pub use crate::registry::ArbiterService;pub use crate::registry::SystemService;pub use crate::sync::SyncArbiter;pub use crate::sync::SyncContext;pub use crate::utils::IntervalFunc;pub use crate::utils::TimerFunc;
Structs§
- Actor
Response - A helper type for representing different types of message responses.
- Addr
- The address of an actor.
- Arbiter
- An Arbiter represents a thread that provides an asynchronous execution environment for futures and functions.
- Arbiter
Handle - A handle for sending spawn and stop messages to an Arbiter.
- Atomic
Response - A specialized actor future holder for atomic asynchronous message handling.
- Context
- An actor execution context.
- Message
Result - A helper type that implements the
MessageResponsetrait. - Recipient
- The
Recipienttype allows to send one specific message to an actor. - Response
- Helper type for representing different type of message responses
- Spawn
Handle - A handle to a spawned future.
- Supervisor
- Actor supervisor
- System
- A manager for a per-thread distributed async runtime.
- System
Runner - Runner that keeps a System’s event loop alive until stop message is received.
Enums§
- Actor
State - Actor execution state
- Mailbox
Error - The errors that can occur during the message delivery process.
- Running
- Send
Error
Traits§
- Actor
- Actors are objects which encapsulate state and behavior.
- Actor
Context - Actor execution context.
- Async
Context - Asynchronous execution context.
- Context
Future Spawner - 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.
- Stream
- A stream of values produced asynchronously.
- Stream
Handler - Stream handling for Actors.
- Supervised
- Actors with the ability to restart after failure.
Type Aliases§
- Recipient
Request - Request
- Response
ActFuture - A specialized actor future for asynchronous message handling.
- Response
Future - A specialized future for asynchronous message handling.