Skip to main content

Crate web_rpc_macro

Crate web_rpc_macro 

Source

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 Calculator will be replaced with two structs CalculatorClient and CalculatorService and a new trait by the same name. All methods must include &self as their first parameter.