Expand description

Callback Interface definitions for a ComponentInterface.

This module converts callback interface definitions from UDL into structures that can be added to a ComponentInterface. A declaration in the UDL like this:

callback interface Example {
  string hello();
};

Will result in a CallbackInterface member being added to the resulting crate::ComponentInterface:

let callback = ci.get_callback_interface_definition("Example").unwrap();
assert_eq!(callback.name(), "Example");
assert_eq!(callback.methods()[0].name(), "hello");

Structs

Functions