api_def

Attribute Macro api_def 

Source
#[api_def]
Expand description

Define an AxVisor API interface.

This macro is applied to a trait definition. It generates the necessary boilerplate code to register the trait as an AxVisor API interface. No arguments are accepted.

This macro uses crate_interface::def_interface internally.