pub trait PathSelector:
Send
+ Sync
+ Debug
+ 'static {
// Required method
fn select(&self, ctx: &PathSelectionContext<'_>) -> PathSelection;
}Available on crate feature
unstable-custom-transports only.Expand description
Trait to configure path selection.
Most users do not need to provide their own selector.
Required Methods§
Sourcefn select(&self, ctx: &PathSelectionContext<'_>) -> PathSelection
fn select(&self, ctx: &PathSelectionContext<'_>) -> PathSelection
Pick the selected path to carry application data among the currently open network paths to the remote endpoint.
Build the result by starting from PathSelection::none and calling
PathSelection::set for the path the selector wants active.
Returning an empty PathSelection keeps the current selection unchanged.