pub trait NetworkProvider: NetworkDHTProvider + NetworkStateInfo + NetworkSigner + Send + Sync { }
NetworkProvider provides Worker with all necessary hooks into the underlying Substrate networking. Using this trait abstraction instead of sc_network::NetworkService directly is necessary to unit test Worker.
Worker
sc_network::NetworkService