pub async fn refresh_explicit_cache(mode: InstalledPackagesMode)Expand description
What: Refresh the process-wide cache of explicitly installed package names.
Inputs:
mode: Filter mode for installed packages.LeafOnly: Usespacman -Qetq(explicitly installed AND not required)AllExplicit: Usespacman -Qeq(all explicitly installed)
Output:
- Updates the global explicit-name set; ignores errors.
Details:
- Converts command stdout into a
HashSetand replaces the shared cache atomically.