/// Returns the set of the hosts for the same priority
///
/// Note: original priorities are lost. This method has contiguous array
/// of sets of hosts. The highest priority hosts returned by `.at(0)`.
///
/// If no hosts the priority exists returns an empty set
///
/// Use `iter()` to iterate over `WeightedSet`'s by priority
Returns the set of the hosts for the same priority
Note: original priorities are lost. This method has contiguous array
of sets of hosts. The highest priority hosts returned by `.at(0)`.

If no hosts the priority exists returns an empty set

Use `iter()` to iterate over `WeightedSet`'s by priority
Returns the set of the hosts for the same priority Note : original priorities are lost . This method has contiguous array of sets of hosts . The highest priority hosts returned by ` . at ( 0 ) ` . If no hosts the priority exists returns an empty set Use ` iter () ` to iterate over ` WeightedSet ` ' s by priority
pub fn at(&self, priority: usize) -> WeightedSet {
        self.0.addresses.get(priority)
            .map(|vec| WeightedSet { addresses: vec })
            .unwrap_or(WeightedSet{ addresses: &[] })
    }
pub fn at ( & self , priority : usize ) -> WeightedSet { self . 0 . addresses . get ( priority ) . map ( | vec | WeightedSet { addresses : vec } ) . unwrap_or ( WeightedSet { addresses : & [ ] } ) }
Returns the set of the hosts for the same priority
Note: original priorities are lost.
Returns the set of the hosts for the same priority Note : original priorities are lost .
&self
priority
usize