Attribute Macrosยง
- service
- This attribute macro should applied to traits that need to be turned into RPCs. The
macro will consume the trait and output three items in its place. For example,
a trait
Calculatorwill be replaced with two structsCalculatorClientandCalculatorServiceand a new trait by the same name with the methods which have had the a&selfreceiver added to them.