Expand description
Candidate server selection for a fetch.
The Select seam enumerates the server pool; RoomCandidates derives
it from room state and orders it by population, pinning the roomβs authority
server ahead of the ranking for auth fetches.
Re-exportsΒ§
use std::sync::Arc;πuse async_trait::async_trait;πuse futures::Stream;πuse futures::StreamExt;πuse futures::stream::empty;πuse ruma::EventId;πuse ruma::OwnedServerName;πuse ruma::RoomId;πuse ruma::ServerName;πuse tuwunel_core::arrayvec::ArrayVec;πuse tuwunel_core::implement;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::IterStream;πuse tuwunel_core::utils::ReadyExt;πuse tuwunel_core::utils::StreamTools;πuse tuwunel_core::utils::rand::index;πuse super::Op;πuse super::Opts;πuse crate::federation::Candidates;πuse crate::federation::WhenAllBackedOff;πuse crate::services::OnceServices;π
StructsΒ§
- Room
Candidates π - Selects candidate servers from room state and federation routing data.
ConstantsΒ§
- ROUTE_
FANOUT π - Population-ranked servers kept per fetch; bounds the serial federation fan-out per missing event.
TraitsΒ§
- Select π
- Abstracts candidate enumeration for a federation fetch.
FunctionsΒ§
- push_
unique π - Append a server to the pool only on its first occurrence.