Returns the set of needed chunk indices.
(&self)
| 145 | |
| 146 | /// Returns the set of needed chunk indices. |
| 147 | pub fn needed_indices(&self) -> Vec<u32> { |
| 148 | self.needed.iter().map(|e| e.index).collect() |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | impl fmt::Display for ChunkNegotiation { |