fn drop(&mut self) {
        // ensure thread-safety by acquiring a lock to the set of objects being received;
        // `unwrap()` is OK here because no thread will panic wile holding the lock.s
        let mut receiving = self.receiving.lock().unwrap();

        // remove all specified objects form the set
        for oid in self.object_ids.iter() {
            receiving.remove(oid);
        }
    }
/// When the receiver is dropped, we need to remove all receiver objects from the receiving set.
/// We do it here because the receiving set needs to be cleared regardless of whether there were
/// errors or not.
When the receiver is dropped, we need to remove all receiver objects from the receiving set.
We do it here because the receiving set needs to be cleared regardless of whether there were
errors or not.
When the receiver is dropped we need to remove all receiver objects from the receiving set . We do it here because the receiving set needs to be cleared regardless of whether there were errors or not .
fn drop(&mut self) {
        // ensure thread-safety by acquiring a lock to the set of objects being received;
        // `unwrap()` is OK here because no thread will panic wile holding the lock.s
        let mut receiving = self.receiving.lock().unwrap();
        // remove all specified objects form the set
        for oid in self.object_ids.iter() {
            receiving.remove(oid);
        }
    }
fn drop ( & mut self ) { // ensure thread-safety by acquiring a lock to the set of objects being received; // `unwrap()` is OK here because no thread will panic wile holding the lock.s let mut receiving = self . receiving . lock ( ) . unwrap ( ) ; // remove all specified objects form the set for oid in self . object_ids . iter ( ) { receiving . remove ( oid ) ; } }
When the receiver is dropped, we need to remove all receiver objects from the receiving set.
When the receiver is dropped we need to remove all receiver objects from the receiving set .
&mut self
&mut self