Trait jsonrpc_pubsub::SubscribeRpcMethod
source · [−]pub trait SubscribeRpcMethod<M: PubSubMetadata>: Send + Sync + 'static {
fn call(&self, params: Params, meta: M, subscriber: Subscriber);
}
Expand description
Subscribe handler
Required methods
fn 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.