pub struct UtmpEntry {
pub ut_type: i16,
pub pid: i32,
pub line: String,
pub id: String,
pub user: String,
pub host: String,
pub login_time: SystemTime,
}Expand description
One parsed entry from a utmp file.
Fields§
§ut_type: i16§pid: i32§line: StringTerminal device basename (e.g. tty2, pts/0). Trimmed of trailing NULs.
id: String4-character session id.
user: StringLogin name.
host: StringRemote host or display, if any.
login_time: SystemTimeLogin timestamp.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UtmpEntry
impl RefUnwindSafe for UtmpEntry
impl Send for UtmpEntry
impl Sync for UtmpEntry
impl Unpin for UtmpEntry
impl UnsafeUnpin for UtmpEntry
impl UnwindSafe for UtmpEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more