Expand description
trace_filter RPC handler and its associated service task.
The RPC handler rely on CacheTask which provides a future that must be run inside a tokio
executor.
The implementation is composed of multiple tasks :
- Many calls the RPC handler
Trace::filter, communicating with the main task. - A main
CacheTaskmanaging the cache and the communication between tasks. - For each traced block an async task responsible to wait for a permit, spawn a blocking
task and waiting for the result, then send it to the main
CacheTask.
Structs§
- Cache
Batch Id - An opaque batch ID.
- Cache
Requester - Allows to interact with the cache task.
- Cache
Task - Type wrapper for the cache task, generic over the Client, Block and Backend types.
- Filter
Request - Trace
- RPC handler. Will communicate with a
CacheTaskthrough aCacheRequester.
Traits§
- Trace
Server - Server trait implementation for the
TraceRPC API.