fn remove(&mut self, key: &D::Key) {
        if let Some(ready_service) = self.take_ready_service(key) {
            // A ready service has no work to cancel, so just drop it.
            std::mem::drop(ready_service);
        } else if let Some(handle) = self.cancel_handles.remove(key) {
            // Cancel the work, implicitly dropping the cancel handle.
            // The service future returns a `Canceled` error,
            // making `poll_unready` drop the service.
            let _ = handle.send(CancelClientWork);
        }
    }
/// Remove the service corresponding to `key` from the peer set.
///
/// Drops the service, cancelling any pending request or response to that peer.
/// If the peer does not exist, does nothing.
Remove the service corresponding to `key` from the peer set.
Drops the service, cancelling any pending request or response to that peer.
If the peer does not exist, does nothing.
Remove the service corresponding to ` key ` from the peer set . Drops the service cancelling any pending request or response to that peer . If the peer does not exist does nothing .
fn remove(&mut self, key: &D::Key) {
        if let Some(ready_service) = self.take_ready_service(key) {
            // A ready service has no work to cancel, so just drop it.
            std::mem::drop(ready_service);
        } else if let Some(handle) = self.cancel_handles.remove(key) {
            // Cancel the work, implicitly dropping the cancel handle.
            // The service future returns a `Canceled` error,
            // making `poll_unready` drop the service.
            let _ = handle.send(CancelClientWork);
        }
    }
fn remove ( & mut self , key : & D :: Key ) { if let Some ( ready_service ) = self . take_ready_service ( key ) { // A ready service has no work to cancel, so just drop it. std :: mem :: drop ( ready_service ) ; } else if let Some ( handle ) = self . cancel_handles . remove ( key ) { // Cancel the work, implicitly dropping the cancel handle. // The service future returns a `Canceled` error, // making `poll_unready` drop the service. let _ = handle . send ( CancelClientWork ) ; } }
Remove the service corresponding to `key` from the peer set.
Remove the service corresponding to ` key ` from the peer set .
&mut self
key
&D::Key