fn drop(&mut self) {
        if self.delete_after_send {
            // ensure thread-safety by acquiring a lock to the set of objects scheduled for deletion;
            // `unwrap()` is OK here because no thread will panic wile holding the lock.
            let mut deleting = self.deleting.lock().unwrap();

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