fn add_connection(&self, conn_id: NetConnId) {
        // create Alice and let her handle connection traffic
        let (_, sender) = executor::connect::<_, NetCmd>(Alice::new(conn_id, self.net_sender.clone()));
        // give Alice's sender to the network binding her to the connection
        self.net_sender
            .send(NetCmd::BindConn(conn_id, sender))
            .expect("failed to send BindConn");
    }
// When a new connection arives, create Alice and let her handle the traffic
When a new connection arives, create Alice and let her handle the traffic
When a new connection arives create Alice and let her handle the traffic
fn add_connection(&self, conn_id: NetConnId) {
        // create Alice and let her handle connection traffic
        let (_, sender) = executor::connect::<_, NetCmd>(Alice::new(conn_id, self.net_sender.clone()));
        // give Alice's sender to the network binding her to the connection
        self.net_sender
            .send(NetCmd::BindConn(conn_id, sender))
            .expect("failed to send BindConn");
    }
fn add_connection ( & self , conn_id : NetConnId ) { // create Alice and let her handle connection traffic let ( _ , sender ) = executor :: connect :: < _ , NetCmd > ( Alice :: new ( conn_id , self . net_sender . clone ( ) ) ) ; // give Alice's sender to the network binding her to the connection self . net_sender . send ( NetCmd :: BindConn ( conn_id , sender ) ) . expect ( " " ) ; }
When a new connection arives, create Alice and let her handle the traffic
When a new connection arives create Alice and let her handle the traffic
&self
conn_id
NetConnId