Returns a set of all chunk hashes in this manifest. Used for quick "do I have this?" lookups during negotiation.
(&self)
| 304 | /// |
| 305 | /// Used for quick "do I have this?" lookups during negotiation. |
| 306 | pub fn hash_set(&self) -> HashSet<[u8; 32]> { |
| 307 | self.entries.iter().map(|e| e.hash).collect() |
| 308 | } |
| 309 | |
| 310 | /// Find a chunk entry by its hash. |
| 311 | /// |