Expand description
Verdict-ranked candidate selection shared by the fetcher and backfill.
A caller hands an eligibility-filtered, priority-ordered server list to
[rank_candidates]; the per-server ShouldAttempt verdict reorders and
drops it.
Re-exportsΒ§
use futures::StreamExt;πuse ruma::OwnedServerName;πuse tuwunel_core::debug_warn;πuse tuwunel_core::implement;πuse tuwunel_core::smallvec::SmallVec;πuse tuwunel_core::utils::IterStream;πuse super::ShouldAttempt;π
EnumsΒ§
- When
AllBacked Off - Selects how ranking handles a pool with no immediately eligible server.
FunctionsΒ§
- rank_
from_ πverdicts - Order
YesbeforeDeprioritizebeforeNo, preserving input order within each rank, then dropNounless every candidate is backed off andwhen_allisAttempt.
Type AliasesΒ§
- Candidates
- Candidate servers for one fetch, with three entries stored inline.
- Verdicts π
- A candidate pool paired with each serverβs verdict, sorted and filtered in
place by
rank_from_verdicts.