referrerpolicy=no-referrer-when-downgrade

Trait sc_authority_discovery::NetworkProvider

source ·
pub trait NetworkProvider: NetworkDHTProvider + NetworkStateInfo + NetworkSigner + Send + Sync { }
Expand description

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.

Implementors§

source§

impl<T> NetworkProvider for T
where T: NetworkDHTProvider + NetworkStateInfo + NetworkSigner + Send + Sync,