[−][src]Function heim::virt::detect
pub async fn detect() -> Option<Virtualization>
This is supported on
feature="virt"
only.Attempts to guess if the running process is running in some [Virtualization] system.
Compatibility
At the moment this function works only for Linux (partially)
and always returns None
for macOS and Windows.