pub fn count_valid<'r, R: Readable>(
        &'r self,
        r: &'r R,
        dht_op_hash: &DhtOpHash,
    ) -> DatabaseResult<usize> {
        let mut count = 0;

        let mut iter = self.list_receipts(r, dht_op_hash)?;
        while let Some(v) = iter.next()? {
            if v.receipt.validation_result == ValidationResult::Valid {
                count += 1;
            }
        }
        Ok(count)
    }
/// Get the current valid receipt count for a given hash.
Get the current valid receipt count for a given hash.
Get the current valid receipt count for a given hash .
pub fn count_valid<'r, R: Readable>(
        &'r self,
        r: &'r R,
        dht_op_hash: &DhtOpHash,
    ) -> DatabaseResult<usize> {
        let mut count = 0;
        let mut iter = self.list_receipts(r, dht_op_hash)?;
        while let Some(v) = iter.next()? {
            if v.receipt.validation_result == ValidationResult::Valid {
                count += 1;
            }
        }
        Ok(count)
    }
pub fn count_valid < ' r , R : Readable > ( & ' r self , r : & ' r R , dht_op_hash : & DhtOpHash , ) -> DatabaseResult < usize > { let mut count = 0 ; let mut iter = self . list_receipts ( r , dht_op_hash ) ? ; while let Some ( v ) = iter . next ( ) ? { if v . receipt . validation_result == ValidationResult :: Valid { count += 1 ; } } Ok ( count ) }
Get the current valid receipt count for a given hash.
Get the current valid receipt count for a given hash .
&'r self
r
&'r R
dht_op_hash
&DhtOpHash
&'r self
r
&'r R
dht_op_hash
&DhtOpHash