pub trait SubscribeRpcMethod<M: PubSubMetadata>:
Send
+ Sync
+ 'static {
// Required method
fn call(&self, params: Params, meta: M, subscriber: Subscriber);
}
Expand description
Subscribe handler
Required Methods§
Sourcefn call(&self, params: Params, meta: M, subscriber: Subscriber)
fn call(&self, params: Params, meta: M, subscriber: Subscriber)
Called when client is requesting new subscription to be started.