pub fn cancel(&mut self, mined_ids: &HashSet<transaction::Hash>) {
        // TODO: this can be simplified with [`HashMap::drain_filter`] which
        // is currently nightly-only experimental API.
        let removed_txids: Vec<UnminedTxId> = self
            .cancel_handles
            .keys()
            .filter(|txid| mined_ids.contains(&txid.mined_id()))
            .cloned()
            .collect();

        for txid in removed_txids {
            if let Some(handle) = self.cancel_handles.remove(&txid) {
                let _ = handle.send(());
            }
        }
    }
/// Cancel download/verification tasks of transactions with the
/// given transaction hash (see [`UnminedTxId::mined_id`]).
Cancel download/verification tasks of transactions with the
given transaction hash .
Cancel download / verification tasks of transactions with the given transaction hash .
pub fn cancel(&mut self, mined_ids: &HashSet<transaction::Hash>) {
        // TODO: this can be simplified with [`HashMap::drain_filter`] which
        // is currently nightly-only experimental API.
        let removed_txids: Vec<UnminedTxId> = self
            .cancel_handles
            .keys()
            .filter(|txid| mined_ids.contains(&txid.mined_id()))
            .cloned()
            .collect();
        for txid in removed_txids {
            if let Some(handle) = self.cancel_handles.remove(&txid) {
                let _ = handle.send(());
            }
        }
    }
pub fn cancel ( & mut self , mined_ids : & HashSet < transaction :: Hash > ) { // TODO: this can be simplified with [`HashMap::drain_filter`] which // is currently nightly-only experimental API. let removed_txids : Vec < UnminedTxId > = self . cancel_handles . keys ( ) . filter ( | txid | mined_ids . contains ( & txid . mined_id ( ) ) ) . cloned ( ) . collect ( ) ; for txid in removed_txids { if let Some ( handle ) = self . cancel_handles . remove ( & txid ) { let _ = handle . send ( ( ) ) ; } } }
Cancel download/verification tasks of transactions with the
given transaction hash (see [`UnminedTxId::mined_id`]).
Cancel download / verification tasks of transactions with the given transaction hash ( see [ ` UnminedTxId :: mined_id ` ] ) .
&mut self
mined_ids
&HashSet<transaction::Hash>