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

Method fmt

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

Source from the content-addressed store, hash-verified

252
253impl 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected