Skip to main content

others

Function others 

Source
pub fn others(
    key: &str,
    since: i64,
    at: i64,
    me: &str,
    me_phone: bool,
    entries: Option<&DoseReminders>,
    peers: &[Peer],
    pulled: bool,
) -> Others
Expand description

What the devices other than me did to remind the dose key, to remind from since, as a phone’s alarm reads it at at (docs/health.md, “What became of a reminder”). Of each other device that counts and shares its doses (health::counts):

  • its notice shown: reminded;
  • its entry set aside here, its clock far ahead of this one’s (Peer::set_aside): its times and promises say nothing, said so;
  • a notice sent, not known shown: it may be on the screen;
  • its promise covering at (no notice from it until then, its clock’s lead and SKEW allowed), nothing sent: it did not remind it;
  • its first try not gone out, no promise covering at: it may have tried since;
  • no word of its own on the dose: a computer closed cleanly, everything it wrote read here, did not remind it, until QUIET_AFTER past since (opened since, it is never the first before every phone acknowledged its opening, and promises that much before it may remind), but only for a phone (me_phone; a computer needs no word of another: the seventh review’s C2), for the opening this phone acknowledged or a later one (Peer::acknowledged: M1), when its own pull went through since the dose (pulled) and nothing that computer wrote after its close was read (a claim renewed while open, an entry of the reminders: the sixth review’s C1); a computer in use may have; another phone’s own alarm, or a device whose entry does not say what it is, may remind it.

entries: none when the file does not read here (nothing known). me_phone: the device reading is a phone (a phone is then named, never “the phone”, when two count, it among them).