#[repr(C)]
pub struct utmp { pub ut_type: c_short, pub ut_pid: pid_t, pub ut_line: [u8; 32], pub ut_id: [u8; 4], pub ut_user: [u8; 32], pub ut_host: [u8; 256], pub ut_exit: exit_status, pub ut_session: i64, pub ut_tv: timeval, pub ut_addr_v6: [i32; 4], pub __unused: [u8; 20], }

Fields

ut_type: c_short

Type of record

ut_pid: pid_t

PID of login process

ut_line: [u8; 32]

Device name of tty - "/dev/"

ut_id: [u8; 4]

Terminal name suffix, or inittab(5) ID

ut_user: [u8; 32]

Username

ut_host: [u8; 256]

Hostname for remote login, or kernel version for run-level message

ut_exit: exit_status

Exit status of a process marked as DEAD_PROCESS; not used by Linux init

ut_session: i64

Session ID (getsid(2)) used for windowing

ut_tv: timeval

Time entry was made

ut_addr_v6: [i32; 4]

Internet address of remote host; IPv4 address uses just ut_addr_v6[0]

__unused: [u8; 20]

Reserved for future use

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Reads a copy of Self from bytes. Read more

Reads a copy of Self from the prefix of bytes. Read more

Reads a copy of Self from the suffix of bytes. Read more

Creates an instance of Self from zeroed bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.