[−][src]Crate xtra
xtra is a tiny, fast, and safe actor system.
Re-exports
pub use self::address::Address; |
pub use self::address::Disconnected; |
pub use self::address::WeakAddress; |
Modules
address | An address to an actor is a way to send it a message. An address allows an actor to be sent any kind of message that it can receive. |
message_channel | A message channel is a channel through which you can send only one kind of message, but to
any actor that can handle it. It is like |
prelude | Commonly used types from xtra |
refcount | This module contains types representing the strength of an address's reference counting, which influences whether the address will keep the actor alive for as long as it lives. |
sink | Module for the sink equivalents to |
spawn | This module contains a trait to spawn actors, implemented for all major async runtimes by default. |
Structs
ActorManager | A manager for the actor which handles incoming messages and stores the context. Its managing
loop can be started with |
ActorShutdown | The operation failed because the actor is being shut down |
Context |
|
Enums
KeepRunning | Whether to keep the actor running after it has been put into a stopping state. |
Traits
Actor | An actor which can handle |
Handler | A trait indicating that an |
Message | A message that can be sent to an |