pub struct Verdict {
pub chosen: usize,
pub chosen_rate: f64,
pub tried: usize,
pub tried_rate: f64,
}Expand description
What a finished search measured and what it chose.
Exists so a front end can SAY what happened. A search that settles below the budget leaves most of the connection rows idle, and a row that only reads “waiting” looks like a dropped connection rather than a decision — which is how a transfer behaving correctly came to be reported as a bug. The numbers here are the evidence the decision was made on, in the units a user can check against a single-connection download of the same object.
Fields§
§chosen: usizeThe concurrency the search settled on.
chosen_rate: f64Aggregate rate measured at chosen, bytes per second. Zero when the
settled level was never measured directly (a refusal clamped it there).
tried: usizeThe highest concurrency the search measured. Equal to chosen when the
search ran to its ceiling and every step paid.
tried_rate: f64Aggregate rate measured at tried, bytes per second.