Crate actix

source ·
Expand description

Actix is an actor framework.

Actors are objects which encapsulate state and behavior, they communicate exclusively by exchanging messages. Actix actors are implemented on top of Tokio.

Multiple actors can run in same thread. Actors can run in multiple threads using the Arbiter API. Actors exchange typed messages.


  • Async or sync actors
  • Actor communication in a local/thread context
  • Using Futures for asynchronous message handling
  • Actor supervision
  • Typed messages (no Any type) and generic messages are allowed
  • Runs on stable Rust 1.68+

§Other Documentation



  • Helper actors
  • Utilities for tracking time.
  • The actix prelude for library developers.
  • Custom Future and Stream implementation with actix support.
  • The actix prelude.
  • Actors registry
  • Sync Actors support


  • A helper type for representing different types of message responses.
  • The address of an actor.
  • An Arbiter represents a thread that provides an asynchronous execution environment for futures and functions.
  • A handle for sending spawn and stop messages to an Arbiter.
  • A specialized actor future holder for atomic asynchronous message handling.
  • An actor execution context.
  • A helper type that implements the MessageResponse trait.
  • The Recipient type allows to send one specific message to an actor.
  • Helper type for representing different type of message responses
  • A handle to a spawned future.
  • Actor supervisor
  • A manager for a per-thread distributed async runtime.
  • Runner that keeps a System’s event loop alive until stop message is received.
  • A weakly referenced counterpart to Addr<A>.
  • A weakly referenced counterpart to Recipient<M>



  • Actors are objects which encapsulate state and behavior.
  • Actor execution context.
  • Asynchronous execution context.
  • Describes how to handle messages of a specific type.
  • Represent message that can be handled by an actor.
  • Stream handling for Actors.
  • Actors with the ability to restart after failure.


  • Starts the system and executes the supplied future.
  • Spawns a future on the current thread as a new task.

Type Aliases§

Attribute Macros§

  • Marks async main function as the actix system entry-point.
  • Marks async test functions to use the actix system entry-point.

Derive Macros§