Create a result for a direct (non-delta) send.
(bytes_sent: u64)
| 231 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected