[−][src]Attribute Macro essrpc_macros::essrpc
#[essrpc]
The main macro with does the magic. When applied to a trait Foo
generates a FooRPCClient
type implementing
RPCClient (and Foo
). as well as
FooRPCServer
implementing RPCServer.
For an asynchronous client, the argument async
can be used
(#[essrpc(async)]
) to generate a FooAsync
trait, which is like
Foo
except every method returns a boxed Future
instead of a
Result
and a FooAsyncRPCClient
type implementing FooAsync
and AsyncRPCClient.
See the crate-level documentation for examples.