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

Method direct

atomic-cli/tests/fixtures/helpers_c6.rs:233–241  ·  view source on GitHub ↗

Create a result for a direct (non-delta) send.

(bytes_sent: u64)

Source from the content-addressed store, hash-verified

231impl PushTransferResult {
232 /// Create a result for a direct (non-delta) send.
233 pub fn direct(bytes_sent: u64) -> Self {
234 Self {
235 used_delta: false,
236 bytes_sent,
237 bytes_saved: 0,
238 chunks_reused: 0,
239 chunks_total: 0,
240 }
241 }
242
243 /// Percentage of bytes saved (0.0–100.0).
244 pub fn savings_pct(&self) -> f64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected