Skip to main content

Module reply

Module reply 

Source
Expand description

Request-response primitive for actor messaging.

Provides a cfg-gated Reply<T> / ReplyReceiver<T> pair:

  • Native: Wraps tokio::sync::oneshot — the handler .awaits the receiver
  • DST: Wraps Rc<RefCell<Option<T>>> — the client reads after run_until_idle()

Structs§

Reply
Sender half of a reply channel (native).
ReplyReceiver
Receiver half of a reply channel (native).

Functions§

reply_channel
Create a linked reply channel pair.