use jsonrpsee::{proc_macros::rpc, core::RpcResult}; // Names must be unique. #[rpc(client, server)] pub trait MethodNameConflict { #[method(name = "foo")] async fn foo(&self) -> RpcResult; #[method(name = "foo")] async fn bar(&self) -> RpcResult; } fn main() {}