Byte budget for a single engine (0 if — contrary to the invariant — it is absent).
(&self, engine: EngineId)
| 166 | /// Byte budget for a single engine (0 if — contrary to the invariant — |
| 167 | /// it is absent). |
| 168 | pub fn get(&self, engine: EngineId) -> usize { |
| 169 | self.per_engine.get(&engine).copied().unwrap_or(0) |
| 170 | } |
| 171 | |
| 172 | /// Sum of all engine byte budgets. |
| 173 | pub fn total(&self) -> usize { |
no outgoing calls