pub struct WeatherApi { /* private fields */ }Expand description
Struct to access weather APIs.
Implementations§
Source§impl WeatherApi
impl WeatherApi
Sourcepub fn get_weather_at_location(
lat: f64,
lon: f64,
alt_m: f64,
) -> Option<XPLMWeatherInfo_t>
pub fn get_weather_at_location( lat: f64, lon: f64, alt_m: f64, ) -> Option<XPLMWeatherInfo_t>
Get the weather at the given location.
The location must be near the user.
Weather may not be available at the location, in which case None will be returned.
Auto Trait Implementations§
impl !Send for WeatherApi
impl !Sync for WeatherApi
impl Freeze for WeatherApi
impl RefUnwindSafe for WeatherApi
impl Unpin for WeatherApi
impl UnsafeUnpin for WeatherApi
impl UnwindSafe for WeatherApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more