Trait jsonrpc_pubsub::SubscribeRpcMethod[][src]

pub trait SubscribeRpcMethod<M: PubSubMetadata>: Send + Sync + 'static {
    fn call(&self, params: Params, meta: M, subscriber: Subscriber);
}

Subscribe handler

Required methods

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

Called when client is requesting new subscription to be started.

Loading content...

Implementors

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

Loading content...