Skip to main content

heard

Function heard 

Source
pub fn heard(holds: bool, system_on: bool) -> Option<bool>
Expand description

A change of this device’s own do-not-disturb, heard as it happened, against what holds here (holds: do-not-disturb on, for any reason): the press it is, Some(on), when the two disagree; none when they agree, which is what Sioul’s own changes look like when they come back (docs/do-not-disturb.md, “Both ways”). A change found later, not heard as it happened, is never a press: its time is unknown, and another device may have pressed since.