pub trait DoseRecord: Send {
// Required methods
fn going(&mut self, going: Going) -> Say;
fn refused(&mut self);
fn shown(&mut self);
fn unshown(&mut self);
fn pause(&mut self, until: i64) -> bool;
fn over(&mut self);
fn settled(&mut self) -> bool;
}Expand description
What a dose’s reminder records, and asks, as it goes (docs/health.md,
“What became of a reminder”), so that another device knows what this one
did before it reminds the dose itself: each notice recorded before it
goes (going), what became of it after. Its own device’s entry alone
(sioul_core::dose_reminders).
Required Methods§
Sourcefn going(&mut self, going: Going) -> Say
fn going(&mut self, going: Going) -> Say
A notice of the dose is about to go: recorded so first (“maybe”: it
may be on the screen from now on), then its words now. Say::Nothing:
no longer to remind (marked, answered or reminded anywhere read here,
the doses kept elsewhere now): nothing sent, nothing more tried.
Sourcefn refused(&mut self)
fn refused(&mut self)
The notice just recorded as going was refused (the bus or the server said no, or it could not be sent): it did not show, taken back.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".