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§

source

fn call(&self, params: Params, meta: M, subscriber: Subscriber)

Called when client is requesting new subscription to be started.

Implementors§

source§

impl<M, F> SubscribeRpcMethod<M> for Fwhere F: Fn(Params, M, Subscriber) + Send + Sync + 'static, M: PubSubMetadata,