Expand description
Derive macros for layline: Layout, Message, FieldCodec and Dispatch.
Each attribute, and each key inside it, may appear once. A rejected type still implements its trait, so the build reports only the real error.
Derive Macrosยง
- Dispatch
- Derives
Dispatchfor an enum ofLayoutpayloads selected by an id. - Field
Codec - Derives
FieldCodecandWireIntfor an integer newtype or an enum of named values, andFieldCodecfor a group of bit fields. - Layout
- Derives
Layoutfor a fixed-size struct. - Message
- Derives
Messagefor a variable-size struct or enum, orChoicefor an enum that#[switch]selects.