Skip to main contentModule rpc
Source - ExtractedIds
- MsgMetadata
- classify_message
- Classify a raw JSON message with constant-time key presence checks.
Allocation: none. Complexity: O(1).
- extract_ids
- Best-effort identifier extraction from known shallow JSON-RPC slots.
Allocation: up to 3 Strings (only when ids exist). Complexity: O(1).
- extract_message_metadata
- Extract commonly used dispatch metadata in one pass over top-level keys.
Allocation: owned method/id strings only when present. Complexity: O(1).
- map_rpc_error
- Map a JSON-RPC error object into a typed error enum.
Allocation: message clone + optional data clone. Complexity: O(1).