Skip to main content

current

Function current 

Source
pub fn current() -> Distro
Expand description

Return the detected distro, cached after the first call.

The detection reads /etc/os-release exactly once; subsequent calls are free (just a pointer load). Safe to call from any async context.