rpc_no_impls.rs 192 B
Newer Older
Igor Aleksanov's avatar
Igor Aleksanov committed
use jsonrpsee::proc_macros::rpc;

// Either client or server field must be provided.
#[rpc()]
pub trait NoImpls {
	#[method(name = "foo")]
	async fn async_method(&self) -> u8;
}

fn main() {}