pub trait UserExt {
// Required methods
fn pid(&self) -> Pid;
fn terminal(&self) -> &str;
fn id(&self) -> &str;
fn hostname(&self) -> &str;
fn address(&self) -> Option<IpAddr>;
fn session_id(&self) -> i32;
}
Expand description
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§
Sourcefn session_id(&self) -> i32
fn session_id(&self) -> i32
Returns the Session ID.