Crate moonbeam_rpc_trace
source ·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
CacheTask
managing 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§
- An opaque batch ID.
- Allows to interact with the cache task.
- Type wrapper for the cache task, generic over the Client, Block and Backend types.
- RPC handler. Will communicate with a
CacheTask
through aCacheRequester
.
Traits§
- Server trait implementation for the
Trace
RPC API.