pub trait PathRanking:
'static
+ Send
+ Sync {
// Required method
fn rank_order(
&self,
this: &PathManagerPath,
other: &PathManagerPath,
) -> Ordering;
}Expand description
Scion path ranking allows expressing preferences between paths.
Required Methods§
Sourcefn rank_order(
&self,
this: &PathManagerPath,
other: &PathManagerPath,
) -> Ordering
fn rank_order( &self, this: &PathManagerPath, other: &PathManagerPath, ) -> Ordering
Ranks the order of two paths based on preference.
§Return
Returns the preference ordering between two paths.
Ordering::Lessifthisis preferred overotherOrdering::Greaterifotheris preferred overthisOrdering::Equalif both paths are equally preferred