Struct acct::AcctV3

source ·
pub struct AcctV3 {
    pub username: String,
    pub command: String,
    pub creation_time: SystemTime,
    /* private fields */
}
Expand description

Represents a acct(5) v3 record structure

see https://linux.die.net/man/5/acct

Fields

username: String

The accounting username

command: String

The command name of executed command

creation_time: SystemTime

The time the command was created

Implementations

Constructs a AcctV3 object from a byte slice

Shows if command was forked

Shows if the command’s user was root

Shows if the command produced a core dump

Shows if the command was killed via a signal

Trait Implementations

Formats the value using the given formatter. Read more

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 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.