(&self, account: &Address)
| 41 | /// Returns the current inflight count for `account`. |
| 42 | #[must_use] |
| 43 | pub fn get(&self, account: &Address) -> u32 { |
| 44 | self.counts.get(account).copied().unwrap_or(0) |
| 45 | } |
| 46 | |
| 47 | /// Attempts to reserve one slot for `account` against `cap`. Returns `true` |
| 48 | /// and increments the count if the account is below `cap`; returns `false` |
no outgoing calls