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

pub trait UserExt {
    pub fn pid(&self) -> i32;
pub fn terminal(&self) -> &str;
pub fn id(&self) -> &str;
pub fn hostname(&self) -> &str;
pub fn address(&self) -> Option<IpAddr>;
pub fn session_id(&self) -> i32; }
This is supported on crate feature host only.

Linux-specific extensions for User.

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

Required methods

pub fn pid(&self) -> i32[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.

pub fn address(&self) -> Option<IpAddr>[src]

Returns the IP address of remote host.

pub fn session_id(&self) -> i32[src]

Returns the Session ID.

Compatibility

Note that session id type is not portable and varies depending on target architecture.

Loading content...

Implementors

impl UserExt for User[src]

Loading content...