Module utils

Source
Expand description

JSON-RPC helpers.

Structs§

BoundedVecDeque
A simple bounded buffer that will terminate the subscription if the buffer becomes full.
PendingSubscription
A pending subscription.
RingBuffer
Fixed size ring buffer that replaces the oldest item when full.
Subscription
An active subscription.

Traits§

Buffer
A trait representing a buffer which may or may not support to replace items when the buffer is full.

Functions§

spawn_subscription_task
Helper for spawning non-blocking rpc subscription task.