Skip to main content

facts

Function facts 

Source
pub fn facts(
    dirs: &Dirs,
    enabled: bool,
    here: &str,
    window_trains: bool,
    focus: bool,
    now: i64,
    power: impl FnOnce() -> Power,
) -> Facts
Expand description

What is known now: the setting (enabled), the table in use and the files of the last trainings, the jobs, a focus session (focus: sioul_core::timelog::running); then, only when nothing else holds a training back, what the system says (power, asked once). here: this computer’s name, as a table records it (sioul_sync::lease::host_name); window_trains: the window’s own training runs (“Train now”).