Skip to main content

active_of

Function active_of 

Source
fn active_of(
    phone: bool,
    reading: Option<(Session, Duration)>,
    pressed: i64,
    now: i64,
) -> Option<bool>
Expand description

active_here, from what was read: a phone; the session’s last reading and how long ago it was made (none: none fresh); when Sioul was last pressed here (Unix seconds, 0 never); now.