Crate bitconch_jsonrpc_pubsub

Crate bitconch_jsonrpc_pubsub 

Source
Expand description

Publish-Subscribe extension for JSON-RPC

Structs§

PubSubHandler
Publish-Subscribe extension of IoHandler.
Session
RPC client session Keeps track of active subscriptions and unsubscribes from them upon dropping.
Sink
A handle to send notifications directly to subscribed client.
Subscriber
Represents a subscribing client. Subscription handlers can either reject this subscription request or assign an unique id.

Enums§

SubscriptionId
Unique subscription id. NOTE Assigning same id to different requests will cause the previous request to be unsubscribed.

Traits§

PubSubMetadata
Metadata extension for pub-sub method handling.
SubscribeRpcMethod
Subscribe handler
UnsubscribeRpcMethod
Unsubscribe handler

Functions§

new_subscription
Creates new subscribe and unsubscribe RPC methods

Type Aliases§

SinkResult
Subscription send result.
TransportError
Raw transport error.