Return how many queued files should be counted as already processed when this stream stops early after hitting a global limit.
(&self)
| 48 | /// Return how many queued files should be counted as already processed |
| 49 | /// when this stream stops early after hitting a global limit. |
| 50 | pub(super) fn skipped_on_limit(&self) -> usize { |
| 51 | match self { |
| 52 | Self::Local(files) => files.len(), |
| 53 | Self::Shared(_) => 0, |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | /// Shared source of work for sibling `FileStream`s |