fn connected(&mut self, key: &Key) {
        let existed = self.connecting.remove(key);
        debug_assert!(
            existed,
            "Connecting dropped, key not in pool.connecting"
        );
        // cancel any waiters. if there are any, it's because
        // this Connecting task didn't complete successfully.
        // those waiters would never receive a connection.
        self.waiters.remove(key);
    }
/// A `Connecting` task is complete. Not necessarily successfully,
/// but the lock is going away, so clean up.
A `Connecting` task is complete. Not necessarily successfully,
but the lock is going away, so clean up.
A ` Connecting ` task is complete . Not necessarily successfully but the lock is going away so clean up .
fn connected(&mut self, key: &Key) {
        let existed = self.connecting.remove(key);
        debug_assert!(
            existed,
            "Connecting dropped, key not in pool.connecting"
        );
        // cancel any waiters. if there are any, it's because
        // this Connecting task didn't complete successfully.
        // those waiters would never receive a connection.
        self.waiters.remove(key);
    }
fn connected ( & mut self , key : & Key ) { let existed = self . connecting . remove ( key ) ; debug_assert ! ( existed " " ) ; // cancel any waiters. if there are any, it's because // this Connecting task didn't complete successfully. // those waiters would never receive a connection. self . waiters . remove ( key ) ; }
A `Connecting` task is complete.
A ` Connecting ` task is complete .
&mut self
key
&Key
&mut self
key
&Key