[][src]Trait heim_host::os::macos::UserExt

pub trait UserExt {
    pub fn pid(&self) -> Pid;
pub fn terminal(&self) -> &str;
pub fn id(&self) -> &str;
pub fn hostname(&self) -> &str; }
This is supported on macOS only.

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

pub fn pid(&self) -> Pid[src]

Returns the Pid of login process.

pub fn terminal(&self) -> &str[src]

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

pub fn id(&self) -> &str[src]

Returns the terminal identifier.

pub fn hostname(&self) -> &str[src]

Returns the hostname for remote login.

Loading content...

Implementors

impl UserExt for User[src]

Loading content...