pub fn new(transport: TTrans, local_peer_id: PeerId, config: NetworkConfig) -> Self {
        Network {
            local_peer_id,
            listeners: ListenersStream::new(transport),
            pool: Pool::new(local_peer_id, config.pool_config, config.limits),
        }
    }
/// Creates a new node events stream.
Creates a new node events stream.
Creates a new node events stream .
pub fn new(transport: TTrans, local_peer_id: PeerId, config: NetworkConfig) -> Self {
        Network {
            local_peer_id,
            listeners: ListenersStream::new(transport),
            pool: Pool::new(local_peer_id, config.pool_config, config.limits),
        }
    }
pub fn new ( transport : TTrans , local_peer_id : PeerId , config : NetworkConfig ) -> Self { Network { local_peer_id , listeners : ListenersStream :: new ( transport ) , pool : Pool :: new ( local_peer_id , config . pool_config , config . limits ) , } }
Creates a new node events stream.
Creates a new node events stream .
transport
TTrans
local_peer_id
PeerId
config
NetworkConfig