Returns `true` if all chunks are already present (nothing to transfer).
(&self)
| 121 | |
| 122 | /// Returns `true` if all chunks are already present (nothing to transfer). |
| 123 | pub fn is_complete(&self) -> bool { |
| 124 | self.needed.is_empty() |
| 125 | } |
| 126 | |
| 127 | /// Returns `true` if no chunks are present (full transfer needed). |
| 128 | pub fn is_full_transfer(&self) -> bool { |