pub struct SystemdLoginRecord {
pub user: String,
pub session_id: String,
pub seat_or_tty: String,
pub raw_device: String,
pub host: String,
pub login_time: SystemTime,
pub pid: u32,
pub session_leader_pid: u32,
pub record_type: SystemdRecordType,
}Expand description
Login record compatible with utmpx structure
Fields§
§user: String§session_id: String§seat_or_tty: String§raw_device: String§host: String§login_time: SystemTime§pid: u32§session_leader_pid: u32§record_type: SystemdRecordTypeImplementations§
Source§impl SystemdLoginRecord
impl SystemdLoginRecord
Sourcepub fn is_user_process(&self) -> bool
pub fn is_user_process(&self) -> bool
Check if this is a user process record
Sourcepub fn login_time_offset(&self) -> OffsetDateTime
pub fn login_time_offset(&self) -> OffsetDateTime
Get login time as time::OffsetDateTime compatible with utmpx
Trait Implementations§
Source§impl Clone for SystemdLoginRecord
impl Clone for SystemdLoginRecord
Source§fn clone(&self) -> SystemdLoginRecord
fn clone(&self) -> SystemdLoginRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SystemdLoginRecord
impl RefUnwindSafe for SystemdLoginRecord
impl Send for SystemdLoginRecord
impl Sync for SystemdLoginRecord
impl Unpin for SystemdLoginRecord
impl UnsafeUnpin for SystemdLoginRecord
impl UnwindSafe for SystemdLoginRecord
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