heim_host::os::macos

Trait UserExt

Source
pub trait UserExt {
    // Required methods
    fn pid(&self) -> Pid;
    fn terminal(&self) -> &str;
    fn id(&self) -> &str;
    fn hostname(&self) -> &str;
}
Expand description

macOS-specific extensions for User.

In macOS user information is provided by utmpx (see man utmpx(5)), trait methods are representing fields of this struct.

Required Methods§

Source

fn pid(&self) -> Pid

Returns the Pid of login process.

Source

fn terminal(&self) -> &str

Returns the tty or pseudo-tty name associated with user.

Source

fn id(&self) -> &str

Returns the terminal identifier.

Source

fn hostname(&self) -> &str

Returns the hostname for remote login.

Implementors§