Attribute Macro jsonrpc_derive::rpc
source · #[rpc]Expand description
Apply #[rpc] to a trait, and a to_delegate method is generated which
wires up methods decorated with #[rpc] or #[pubsub] attributes.
Attach the delegate to an IoHandler and the methods are now callable
via JSON-RPC.