Skip to main content

select_best_server

Function select_best_server 

Source
pub fn select_best_server(servers: &[Server]) -> Result<Server, Error>
Expand description

Select the best server from a list, preferring the closest by distance.

ยงErrors

Returns Error::ServerNotFound if the server list is empty.