Skip to main content

ServerLocationsProvider

Trait ServerLocationsProvider 

Source
pub trait ServerLocationsProvider: Send + Sync {
    // Required method
    fn get(&self, name: &str) -> Option<Arc<Vec<String>>>;
}

Required Methods§

Source

fn get(&self, name: &str) -> Option<Arc<Vec<String>>>

Get the locations of the server

§Arguments
  • name - The name of the server to get
§Returns
  • Option<Arc<Vec<String>>> - The locations of the server if found, None otherwise

Implementors§