Skip to main content

Module mailbox

Module mailbox 

Source
Expand description

Actor mailbox and message sending types.

This module provides:

  • ActorRef: A handle for sending messages to an actor
  • SendError: Error type for failed sends

§Platform Differences

  • Native: Uses crossbeam-channel for lock-free message passing between threads
  • WASM: Uses Rc<RefCell> processor for inline (synchronous) message handling

Structs§

ActorRef
Handle to send messages to an actor.

Enums§

AskError
Error returned when an ask (request-response) fails.
RecvError
Error when receiving blocks.
RecvTimeoutError
Error when receiving with timeout.
SendError
Error returned when sending a message fails.
TryRecvError
Error when trying to receive without blocking.