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
sourceimpl AcctV3
impl AcctV3
sourcepub fn from_slice(buf: &[u8]) -> Result<AcctV3>
pub fn from_slice(buf: &[u8]) -> Result<AcctV3>
Constructs a AcctV3 object from a byte slice
sourcepub fn was_forked(&self) -> bool
pub fn was_forked(&self) -> bool
Shows if command was forked
sourcepub fn was_super_user(&self) -> bool
pub fn was_super_user(&self) -> bool
Shows if the command’s user was root
sourcepub fn was_core_dumped(&self) -> bool
pub fn was_core_dumped(&self) -> bool
Shows if the command produced a core dump
sourcepub fn was_killed(&self) -> bool
pub fn was_killed(&self) -> bool
Shows if the command was killed via a signal
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AcctV3
impl Send for AcctV3
impl Sync for AcctV3
impl Unpin for AcctV3
impl UnwindSafe for AcctV3
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more