Expand description
Procedural macros for the workspace effect crate.
Doc links cannot use the id_effect::… prefix here: this crate defines an effect function, which
shadows the effect crate name in rustdoc link resolution.
Macros§
- effect
- Procedural do-notation macro for [
id_effect::Effect]. - match_
effect - Enum match helper — prefix variant patterns with
EnumPathfor exhaustiveness checking.
Attribute Macros§
- capability
- Deprecated no-op (since 0.3; removed in 0.7): returns the item unchanged.
- distributed_
behavior - Mark a process struct as a remotely spawnable behavior.
- effect_
tagged - Injects
pub _tag: &'static str, an [id_effect::match_::HasTag] impl, andEFFECT_TAGGED_TAGon the struct (see generated inherent associated const).
Derive Macros§
- Effect
Data - Derive macro: structural
PartialEq,Eq, andHashfor Effect.ts-style data types. - Fsm
- Derive
id_effect_fsm::Fsm(initial state + transition table) for a fieldless state enum. - Optics
- Derive field lenses and enum prisms for [
id_effect_optics]. - Provider
Spec - Derive [
id_effect::ProviderSpec] when paired with#[provides(Capability)]. - Schema
- Derive an inherent
schema()constructor and an [id_effect::schema::HasSchema] impl for a struct with named fields (JSON-shaped [id_effect::schema::Unknown] wire). - Schema
Parser - Deprecated alias of
Schema; expands to exactly the same code.