Expand description
Publish-Subscribe extension for JSON-RPC
Modules§
- manager
- The SubscriptionManager used to manage subscription based RPCs.
- oneshot
- A futures oneshot channel that can be used for rendezvous.
- typed
- PUB-SUB auto-serializing structures.
Structs§
- IoDelegate
- Wire up rpc subscriptions to
delegate
struct - PubSub
Handler - 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§
- Subscription
Id - Unique subscription id.
Traits§
- PubSub
Metadata - Metadata extension for pub-sub method handling.
- Subscribe
RpcMethod - Subscribe handler
- Unsubscribe
RpcMethod - Unsubscribe handler
Functions§
- new_
subscription - Creates new subscribe and unsubscribe RPC methods
Type Aliases§
- Sink
Result - Subscription send result.
- Transport
Error - Raw transport error.