pub struct Counts {
pub phase: String,
pub total_work: u64,
pub done_work: u64,
/* private fields */
}
Expand description
Holds the actual counters, in an inner object that can be referenced by multiple Report values.
Fields§
§phase: String
General phase of work.
total_work: u64
Total estimated work to be done (task-specific units).
done_work: u64
Amount of work done so far, to indicate percentage completion.
Implementations§
source§impl Counts
impl Counts
sourcepub fn get_count(&self, counter_name: &str) -> u64
pub fn get_count(&self, counter_name: &str) -> u64
Return the value of a counter. A counter that has not yet been updated is 0.
sourcepub fn get_size(&self, counter_name: &str) -> Sizes
pub fn get_size(&self, counter_name: &str) -> Sizes
Get size of data processed.
For any size-counter name, returns a pair of (compressed, uncompressed) sizes, in bytes.