pub struct BestAvailablePeers {
pub count: usize,
pub reliable: usize,
pub transient_local: usize,
pub manual_by_topic: usize,
pub deadline_min: u32,
pub deadline_max: u32,
pub lease_min: u32,
pub lease_max: u32,
}Expand description
The discovered peers of one topic, folded down to what
QoSProfile::resolve_best_available reads — issue 1973.
A fold rather than a list so a graph walk can feed it one endpoint at a time, with no allocator and no bound on how many endpoints there are.
Fields§
§count: usizePeers observed.
reliable: usize…of which RELIABLE.
transient_local: usize…of which TRANSIENT_LOCAL.
manual_by_topic: usize…of which MANUAL_BY_TOPIC.
deadline_min: u32Smallest finite deadline seen, ms; 0 when none was finite.
deadline_max: u32Largest finite deadline seen, ms; 0 when none was finite.
lease_min: u32Smallest finite liveliness lease seen, ms; 0 when none was finite.
lease_max: u32Largest finite liveliness lease seen, ms; 0 when none was finite.
Implementations§
Source§impl BestAvailablePeers
impl BestAvailablePeers
Sourcepub fn observe(&mut self, peer: &QoSProfile)
pub fn observe(&mut self, peer: &QoSProfile)
Fold one discovered endpoint’s profile in.
0, DURATION_INFINITE_MS and the best-available sentinel all read
as “no finite window” — upstream’s RMW_QOS_DEADLINE_DEFAULT
comparison, widened to our two spellings of infinite.
Trait Implementations§
Source§impl Clone for BestAvailablePeers
impl Clone for BestAvailablePeers
Source§fn clone(&self) -> BestAvailablePeers
fn clone(&self) -> BestAvailablePeers
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more