resultcode

Attribute Macro resultcode 

Source
#[resultcode]
Expand description

This macro can be used to automatically generate introspection information for return codes.

For example, it can be applied to types like the satrs_mib::res_code::ResultU16 type to automatically generate satrs_mib::res_code::ResultU16Info instances. These instances can then be used for tasks like generating CSVs or YAML files with the list of all result codes. This information is valuable for both operators and developers.