[−][src]Function jsonrpc_pubsub::new_subscription
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>,
Creates new subscribe and unsubscribe RPC methods