Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    result: Result<bool, CheckErr>,
    state: &mut LicenseState,
    now: u64,
    grace_secs: u64,
) -> Resolution
Expand description

Fold a check result into a LicenseStatus, stamping last_validated on success and honoring the offline grace window. Fail closed: CheckErr::Denied never rides grace. (Pure — the caller decides when to persist state.)