Skip to main content

ProgressEntry

Type Alias ProgressEntry 

Source
pub type ProgressEntry = Range<u64>;
Expand description

A byte-range representing downloaded or to-be-downloaded progress.

Stored as a Range<u64> from start (inclusive) to end (exclusive).

Aliased Type§

pub struct ProgressEntry {
    pub start: u64,
    pub end: u64,
}

Fields§

§start: u64

The lower bound of the range (inclusive).

§end: u64

The upper bound of the range (exclusive).

Trait Implementations§

Source§

impl Total for ProgressEntry

Source§

fn total(&self) -> u64

Total number of bytes represented by this progress value.