pub fn remind_offering(
title: &str,
body: &str,
choices: Vec<(String, Box<dyn FnOnce() + Send>)>,
) -> Result<(), String>Expand description
A gentle reminder with its buttons wherever the system carries them, each
its label and its action (the end of work’s notice and the night’s:
docs/reviews.md). On Linux and the BSDs as remind (one button) or
remind_choices (several) show them. On macOS with NSUserNotification’s
own: the action button, or “Options” and its list when there are several;
a click on the notice itself is its first button’s. Sent and waited for on
a thread of its own, until a press or until the notice leaves the
Notification Center (macOS hands the press to the main thread, which Qt’s
loop runs). The doses’ reminders stay as remind shows them. On Windows,
the words alone (the window shows these through Sioul’s icon in the tray
instead, a click opening the first button’s); on Android, none (Java’s).