Skip to main content

resolve_effective_patch_mode

Function resolve_effective_patch_mode 

Source
pub fn resolve_effective_patch_mode(
    addon_id: &str,
    instance_policy: PatchMode,
    addon_mode: AddonPatchMode,
    support: PatchModeSupport,
) -> Result<PatchMode>
Expand description

Resolves the effective PatchMode for an addon given the instance-level policy, the addon’s per-addon preference, and the addon’s declared capability.

Enforces monotonic tightening: an addon can tighten a Physical instance policy down to Virtual, but can never elevate a Virtual instance policy to Physical.