Skip to main content

Crate photon_macros

Crate photon_macros 

Source
Expand description

Proc macros for Photon pub/sub.

§Entry points

  • [topic] — typed publish/subscribe on a struct; submits a topic descriptor to inventory
  • [subscribe] — registers a handler; requires Photon::start_executor at boot

Attribute tables: photon::config. Getting started: declare topics.

Attribute Macros§

subscribe
Marks a function as a subscription handler registered via inventory.
topic
Marks a struct as a Photon topic, generating typed publish/subscribe APIs.