[go: up one dir, main page]

sysinfo 0.30.11

Library to get system information such as processes, CPUs, disks, components and networks
Documentation
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::{Gid, Group, Uid, User};

pub(crate) struct UserInner;

impl UserInner {
    pub(crate) fn id(&self) -> &Uid {
        &Uid(0)
    }

    pub(crate) fn group_id(&self) -> Gid {
        Gid(0)
    }

    pub(crate) fn name(&self) -> &str {
        ""
    }

    pub(crate) fn groups(&self) -> Vec<Group> {
        Vec::new()
    }
}

pub(crate) fn get_users(_: &mut Vec<User>) {}