macro_rules! invoker_ent {
{ $func:expr } => { ... };
{ @special $func:expr } => { ... };
{ @@impl
func: ($func:expr),
rpc_invoker: ($rpc_invoker:expr),
} => { ... };
}
Expand description
Create an InvokerEnt
around a single function.
Syntax:
ⓘ
invoker_ent!( function )
invoker_ent!( @special function )
The function must be a fn
item
(with all necessary generic parameters specified)
with the correct type for an RPC implementation function;
see the module documentation.
If the function is marked as @special,
it does not have to return a type serializable as an RPC message,
and it will not be exposed as an RPC function.
You will still be able to invoke it with DispatchTable::invoke_special
.