Function jsonrpc_pubsub::new_subscription
source · [−]pub fn new_subscription<M, F, G>(
notification: &str,
subscribe: F,
unsubscribe: G
) -> (Subscribe<F, G>, Unsubscribe<G>) where
M: PubSubMetadata,
F: SubscribeRpcMethod<M>,
G: UnsubscribeRpcMethod<M>,
Expand description
Creates new subscribe and unsubscribe RPC methods