pub enum DirStat {
Show 16 variants
Complete,
Timeout,
Running,
Min,
Max,
D1,
D2,
D3,
D4,
D6,
D7,
D8,
D9,
Q1,
Q3,
Md,
}Expand description
Download statistics for directory requests.
These statistics measure the performance of directory downloads, including completion rates and speed percentiles.
§Variants
| Stat | Description |
|---|---|
Complete | Requests that completed successfully |
Timeout | Requests that didn’t complete within timeout |
Running | Requests still in progress when measured |
Min | Minimum download rate (B/s) |
Max | Maximum download rate (B/s) |
D1-D9 | Decile download rates (10th-90th percentile) |
Q1, Q3 | Quartile download rates (25th, 75th percentile) |
Md | Median download rate |
§Example
use stem_rs::descriptor::extra_info::DirStat;
use std::str::FromStr;
let stat = DirStat::from_str("complete").unwrap();
assert_eq!(stat, DirStat::Complete);Variants§
Complete
Requests that completed successfully.
Timeout
Requests that timed out (10 minute default).
Running
Requests still running when measurement was taken.
Min
Minimum download rate in bytes per second.
Max
Maximum download rate in bytes per second.
D1
10th percentile download rate.
D2
20th percentile download rate.
D3
30th percentile download rate.
D4
40th percentile download rate.
D6
60th percentile download rate.
D7
70th percentile download rate.
D8
80th percentile download rate.
D9
90th percentile download rate.
Q1
First quartile (25th percentile) download rate.
Q3
Third quartile (75th percentile) download rate.
Md
Median download rate.
Trait Implementations§
impl Eq for DirStat
impl StructuralPartialEq for DirStat
Auto Trait Implementations§
impl Freeze for DirStat
impl RefUnwindSafe for DirStat
impl Send for DirStat
impl Sync for DirStat
impl Unpin for DirStat
impl UnwindSafe for DirStat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more