[−][src]Trait heim_host::os::linux::UserExt
This is supported on Linux 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) -> 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.
pub fn address(&self) -> Option<IpAddr>
[src]
Returns the IP address of remote host.
pub fn session_id(&self) -> SessionId
[src]
Returns the Session ID.
Compatibility
Note that session id type is not portable and varies depending on target architecture.