Module actix_web::actix::dev

source ·
Expand description

The actix prelude for library developers

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::dev::*;

Modules

Custom Future implementation with Actix support
Actix system messages

Structs

Helper type for representing different type of message responses
Address of the actor
Event loop controller
Actor execution context
An ActorStream that periodically runs a function in the actor’s 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.
Actors registry
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
Sync arbiter
Sync actor execution context
System is an actor which manages runtime.
System wide actors registry
An ActorFuture that runs a function in the actor’s context after a specified amount of time.

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
Trait for types which are a placeholder of a value that may become available at some later point in time.
A stream of values, not all of which may have been produced yet.
Trait defines arbiter’s service.
Asynchronous execution context
Helper trait which can spawn future into actor’s context
Message handler
Message type
Trait which defines message response
Trait defines message response channel
Stream handler
Actors with ability to restart after failure
Trait defines system’s service.
Converter trait, packs message to suitable envelope
Helper trait that allows conversion of normal future into ActorFuture
Helper trait that allows conversion of normal stream into ActorStream

Type Definitions

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

Derive Macros