Function sc_network::config::notification_service

source ยท
pub fn notification_service(
    protocol: ProtocolName,
) -> (ProtocolHandlePair, Box<dyn NotificationService>)
Expand description

Create new (protocol, notification) handle pair.

Handle pair allows Notifications and the protocol to communicate with each other directly.