#[derive(NextNodes)]
{
// Attributes available to this derive:
#[next_node]
}
Expand description
Derives the NextNodes trait for a VPP next node enum
Only unit variants are allowed and they must not have explicit values.
§Attributes
- Each variant must have a
#[next_node = "<node-name>"]attribute, where<node-name>is the name of a VPP node.
§Examples
#[derive(NextNodes)]
enum ExampleNextNode {
#[next_node = "drop"]
Drop,
}