Function vatsim_utils::rest_api::get_online_facilities
source · pub async fn get_online_facilities() -> Result<Vec<Facility>, VatsimUtilError>
Expand description
Get facilities currently staffed by ATC.
§Example
use vatsim_utils::rest_api::get_online_facilities;
let facilities = get_online_facilities().await.unwrap();
§Errors
This function can fail if the HTTP request fails or if the returned data does not match the schemas of the models passed to the deserializer.