[−][src]Attribute Macro easy_jsonrpc::rpc
#[rpc]
Generate a Handler implementation and client helpers for trait input.
Example usage:
#[rpc] trait MyApi { fn my_method(&self, a: usize); fn my_other_method(&self) -> bool {} }
Generated code:
impl Handler for &dyn MyApi { .. } pub enum my_api {} impl my_api { fn my_method(arg0: usize) -> Result<BoundMethod<'static, ()>, ArgSerializeError> { .. } fn my_other_method() -> Result<BoundMethod<'static, bool>, ArgSerializeError> { .. } }