pub trait RpcService: Send + 'static {
// Required methods
fn handle_request(&self, request: &[u8]) -> Result<Vec<u8>>;
fn name(&self) -> &str;
}Expand description
Trait for RPC service implementations.
This is the core service trait that handles incoming requests. Implementations should parse the request, dispatch to handlers, and build responses.