pub fn new(
		network_to_protocol_sender: Sender<FromNetworkMsg<Block>>,
		client_to_protocol_sender: Sender<ProtocolMsg<Block, S>>,
		protocol_to_network_receiver: NetworkPort<Block>,
	) -> Self {
		ProtocolChannel {
			buffered_messages: Mutex::new(VecDeque::new()),
			network_to_protocol_sender,
			client_to_protocol_sender,
			protocol_to_network_receiver,
		}
	}
/// Create new buffered network port.
Create new buffered network port.
Create new buffered network port .
pub fn new(
		network_to_protocol_sender: Sender<FromNetworkMsg<Block>>,
		client_to_protocol_sender: Sender<ProtocolMsg<Block, S>>,
		protocol_to_network_receiver: NetworkPort<Block>,
	) -> Self {
		ProtocolChannel {
			buffered_messages: Mutex::new(VecDeque::new()),
			network_to_protocol_sender,
			client_to_protocol_sender,
			protocol_to_network_receiver,
		}
	}
pub fn new ( network_to_protocol_sender : Sender < FromNetworkMsg < Block > > , client_to_protocol_sender : Sender < ProtocolMsg < Block , S > > , protocol_to_network_receiver : NetworkPort < Block > , ) -> Self { ProtocolChannel { buffered_messages : Mutex :: new ( VecDeque :: new ( ) ) , network_to_protocol_sender , client_to_protocol_sender , protocol_to_network_receiver , } }
Create new buffered network port.
Create new buffered network port .
network_to_protocol_sender
Sender<FromNetworkMsg<Block>>
client_to_protocol_sender
Sender<ProtocolMsg<Block, S>>
protocol_to_network_receiver
NetworkPort<Block>
network_to_protocol_sender
Sender<FromNetworkMsg<Block>>
client_to_protocol_sender
Sender<ProtocolMsg<Block, S>>
protocol_to_network_receiver
NetworkPort<Block>