Function sys_metrics::host::get_logged_users[][src]

pub fn get_logged_users() -> Result<Vec<String>, Error>
Expand description

Get the currently logged users.

Will get them from /var/run/utmp. If the file does not exist, it will return and Error. Be careful that the Error is only on Linux (and only if /var/run/utmp is not found).