Skip to main content

Crate causal_core_macros

Crate causal_core_macros 

Source

Attribute Macros§

aggregator
Marks a function as an aggregator — generates impl Apply<E> for A and an Aggregator factory.
aggregators
Collects #[aggregator] functions in a module into a fn aggregators() -> Vec<Aggregator>.
event
Marks a type as a causal Event, generating a causal::Event impl.
projection
Marks a function as a projection — receives all events as AnyEvent, returns Result<()>.
reactor
reactors

Derive Macros§

DistributedSafe
Derive macro for DistributedSafe trait.