/// The method reacts to a *Transport* state change message due to a peer
/// connecting or disconnecting.
The method reacts to a *Transport* state change message due to a peer
connecting or disconnecting.
The method reacts to a * Transport * state change message due to a peer connecting or disconnecting .
fn on_transport_state_change(&self, transport_state_change: TransportStateChange) {
        warn!(
            self.log,
            "Transport state change: {:?}", transport_state_change
        );
        match transport_state_change {
            TransportStateChange::PeerFlowDown(info) => {
                self.download_manager.peer_connection_down(info.peer_id)
            }
            TransportStateChange::PeerFlowUp(info) => {
                self.download_manager.peer_connection_up(info.peer_id)
            }
        }
    }
fn on_transport_state_change ( & self , transport_state_change : TransportStateChange ) { warn ! ( self log " " transport_state_change ) ; match transport_state_change { TransportStateChange :: PeerFlowDown ( info ) => { self . download_manager . peer_connection_down ( info . peer_id ) } TransportStateChange :: PeerFlowUp ( info ) => { self . download_manager . peer_connection_up ( info . peer_id ) } } }
The method reacts to a *Transport* state change message due to a peer
connecting or disconnecting.
The method reacts to a * Transport * state change message due to a peer connecting or disconnecting .
&self
transport_state_change
TransportStateChange