Skip to main content

present_since

Function present_since 

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

present_of, from the session as last read (kept_session: the reading and how long ago it was made; none when there is none fresh enough) and the last press in Sioul (how long ago): a press made since the reading counts whatever the reading said, its lock included (someone unlocked the computer to make it); an older one as present_of reads it. No reading, a press within PRESENT says someone, and nothing else says anything (unknown: Sioul running counts).