fn send_message(&mut self, message: TMessage) {
		match self.state {
			ProtocolState::Normal { ref mut substreams, .. } =>
				substreams[0].send_message(message),

			_ => debug!(target: "sub-libp2p", "Tried to send message over closed protocol \
				with {:?}", self.remote_peer_id)
		}
	}
/// Sends a message to the remote.
Sends a message to the remote.
Sends a message to the remote .
fn send_message(&mut self, message: TMessage) {
		match self.state {
			ProtocolState::Normal { ref mut substreams, .. } =>
				substreams[0].send_message(message),
			_ => debug!(target: "sub-libp2p", "Tried to send message over closed protocol \
				with {:?}", self.remote_peer_id)
		}
	}
fn send_message ( & mut self , message : TMessage ) { match self . state { ProtocolState :: Normal { ref mut substreams , .. } => substreams [ 0 ] . send_message ( message ) , _ => debug ! ( target " " " \
 " self remote_peer_id ) } }
Sends a message to the remote.
Sends a message to the remote .
&mut self
message
TMessage
&mut self
message
TMessage