Function open_notify::update[][src]

pub fn update(receiver: &Receiver) -> Option<Result<Vec<Spot>, String>>
Expand description

Get current ISS spotting update that the spawned thread could fetched.

Parameters

  • receiver: the channel receiver from preceded call to opennotify_org::init()

Returng value

  • None: No update available
  • Some(Result): Update available
    • Ok(Vec<Spot>): vector of upcoming spotting events (see also open-notify documentation for details)
    • Err(String): Error message about any occured http or json issue
      • e.g. `500 Internal Server Error“
      • some json parser error message if response from open-notify.org could not be parsed