(&self, f: &mut std::fmt::Formatter<'_>)
| 306 | |
| 307 | impl std::fmt::Display for PushTransferResult { |
| 308 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 309 | if self.used_delta { |
| 310 | write!( |
| 311 | f, |
| 312 | "delta: sent {} ({} saved, {}/{} chunks reused, {:.0}% savings)", |
| 313 | format_bytes(self.bytes_sent), |
| 314 | format_bytes(self.bytes_saved), |
| 315 | self.chunks_reused, |
| 316 | self.chunks_total, |
| 317 | self.savings_pct(), |
| 318 | ) |
| 319 | } else { |
| 320 | write!(f, "direct: sent {}", format_bytes(self.bytes_sent)) |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | /// Upload a single change using the threshold-gated delta transfer protocol. |
nothing calls this directly
no outgoing calls
no test coverage detected