//! Runtime unlock status — the single bit the app gates features on.
/// Runtime unlock status. `Active`/`Grace` both mean paid features are unlocked.
/// `Active`/`Grace` mean paid features are unlocked.
#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]pubenumLicenseStatus{/// Startup / a check is in flight — nothing decided yet.
#[default]
Unknown,/// No key, an authoritative denial, or grace expired. Features off.
Locked,/// Online validation succeeded. Features on.
Active,/// Offline within the grace window off a cached validation. Features on.
Grace,}implLicenseStatus{/// Are paid features unlocked?
pubfnunlocked(self)->bool{matches!(self,LicenseStatus::Active |LicenseStatus::Grace)}}