Skip to main content

fire_fields

Function fire_fields 

Source
pub(crate) fn fire_fields(
    kind: BreakKind,
    s: &Settings,
) -> (u64, bool, bool, Vec<String>)
Expand description

The (duration_secs, enforceable, manual_finish, hints) a break of kind fires with. Single source for the scheduled-fire, resume, and CLI-trigger paths, which each used to repeat this per-kind match. Enforceability goes through test_break_enforceable so every path shares one rule; duration / manual-finish / hints come from the matching Settings accessors.