Skip to main content

Crate razor_rpc_macros

Crate razor_rpc_macros 

Source

Macros§

endpoint_client
The endpoint_client! macro generates a client struct that can be used to make remote API calls.

Attribute Macros§

endpoint_async
The #[endpoint_async] macro applies to a trait to implement it for a client struct.
service
The #[service] macro is applied to an impl Trait for Struct block to automatically generate the ServiceStatic implementation for the type.
service_mux_struct
The #[service_mux_struct] macro is applied to a struct to implement ServiceTrait on it. It acts as a dispatcher, routing serve() calls to the correct service based on the req.service field.