(&self, f: &mut std::fmt::Formatter<'_>)
| 252 | |
| 253 | impl std::fmt::Display for PushTransferResult { |
| 254 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 255 | if self.used_delta { |
| 256 | write!( |
| 257 | f, |
| 258 | "delta: sent {} ({} saved, {}/{} chunks reused, {:.0}% savings)", |
| 259 | format_bytes(self.bytes_sent), |
| 260 | format_bytes(self.bytes_saved), |
| 261 | self.chunks_reused, |
| 262 | self.chunks_total, |
| 263 | self.savings_pct(), |
| 264 | ) |
| 265 | } else { |
| 266 | write!(f, "direct: sent {}", format_bytes(self.bytes_sent)) |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /// Upload a single change using the threshold-gated delta transfer protocol. |
nothing calls this directly
no outgoing calls
no test coverage detected