Crate openweathermap
Source - blocking
- synchronous functions
- Clouds
- Detailed clouds report
- Coord
- Location coordinates
- CurrentWeather
- current weather report in a nested struct
- Main
- Detailed weather report
- Sys
- Additional information
- Volume
- Rain or snow volume report
- Weather
- Weather condition description
- Wind
- Detailed wind report
- LOADING
- Loading error messaage you get at the first call of
update()
.
- init
- Spawns a thread which fetches the current weather from
openweathermap.org periodically.
- update
- Get current weather update that the spawned thread could fetched.
- weather
- Fetch current weather update once and stop thread immediately after success.
Returns the result in a future.
- Receiver
- Receiver object you get from
init()
and have top handle to update()
.