Set the archive size and compute compression ratio.
(mut self, size: u64)
| 602 | |
| 603 | /// Set the archive size and compute compression ratio. |
| 604 | pub fn with_archive_size(mut self, size: u64) -> Self { |
| 605 | self.archive_size = size; |
| 606 | if self.manifest.total_size > 0 { |
| 607 | self.compression_ratio = Some(size as f64 / self.manifest.total_size as f64); |
| 608 | } |
| 609 | self |
| 610 | } |
| 611 | |
| 612 | /// Set the duration. |
| 613 | pub fn with_duration(mut self, ms: u64) -> Self { |
no outgoing calls