Trait Rpc
tiny_rpc::rpc
pub trait Rpc { type Request; type Response; }
The Rpc trait defined a rpc service by definding several necessary items.
Rpc
The implementation is usually generated by macro.
type Request
type Response