MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-cli/tests/fixtures/helpers_c5.rs:308–322  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

306
307impl 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected