pub trait RpcHandler<Req, Resp>: Send + Sync {
// Required method
fn handle(&self, request: Req) -> Result<Resp>;
}Expand description
Trait for individual RPC method handlers.
Each RPC method can be implemented as a separate handler, allowing for cleaner separation of concerns.