[][src]Function sys_metrics::host::get_uuid

pub fn get_uuid() -> Result<String, Error>

Get the machine UUID of the host.

On linux it will read it from /etc/machine-id or /var/lib/dbus/machine-id.

On macOS it will use unsafe call to OSX specific function.