pub type RpcHandler = Arc<dyn Fn(Bytes) -> BoxFuture<'static, Result<Bytes>> + Send + Sync>;Expand description
Type alias for an RPC handler: takes raw request bytes, returns raw response bytes.
Aliased Typeยง
pub struct RpcHandler { /* private fields */ }