Skip to main content

present_of

Function present_of 

Source
pub fn present_of(session: Session, pressed: Option<Duration>) -> Option<bool>
Expand description

Whether a person is at this computer now: its session locked, no; else a press in Sioul (its window, do-not-disturb’s switch) less than PRESENT ago (pressed), yes, whatever the system says of input; else input less than PRESENT ago, as the session says, also when its sources disagree on the lock (Session::disputed: input alone says it); nothing said of input, unknown. Unknown is never “nobody”: Sioul running then counts as someone at it, as before (devices::others_in_use).