[][src]Trait heim::host::os::macos::UserExt

pub trait UserExt {
    fn pid(&self) -> i32;
fn terminal(&self) -> &str;
fn id(&self) -> &str;
fn hostname(&self) -> &str; }

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

fn pid(&self) -> i32

Returns the Pid of login process.

fn terminal(&self) -> &str

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

fn id(&self) -> &str

Returns the terminal identifier.

fn hostname(&self) -> &str

Returns the hostname for remote login.

Loading content...

Implementors

impl UserExt for User[src]

Loading content...