[−][src]Struct coreutils_core::os::utmpx::Utmpx
A struct that represents a user account, where user can be humam users or other parts of the system that requires the usage of account structure, like some daemons.
Methods
impl Utmpx
[src]
pub fn from_c_utmpx(utm: utmpx) -> Self
[src]
Creates a new Utmpx
entry from the C
version of the structure.
pub fn user(&self) -> &BStr
[src]
Get user name.
pub fn host(&self) -> &BStr
[src]
Get host name.
pub fn process_id(&self) -> Pid
[src]
Get the process ID.
pub fn id(&self) -> &BStr
[src]
Get the record ID.
pub fn device_name(&self) -> &BStr
[src]
Get the device name of the entry (usually a tty or console).
pub const fn entry_type(&self) -> UtmpxKind
[src]
Get the type kind if the entry.
pub const fn timeval(&self) -> TimeVal
[src]
Get the time where the entry was created. (often login time)
pub fn login_time(&self) -> DateTime
[src]
Get the time where the entry was created (often login time) in a more complete structure.
pub const fn session(&self) -> c_int
[src]
Get the session ID of the entry.
pub const fn exit_status(&self) -> ExitStatus
[src]
Get exit status of the entry.
Trait Implementations
impl Clone for Utmpx
[src]
impl Debug for Utmpx
[src]
impl Eq for Utmpx
[src]
impl From<utmpx> for Utmpx
[src]
impl Hash for Utmpx
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Utmpx> for Utmpx
[src]
impl StructuralEq for Utmpx
[src]
impl StructuralPartialEq for Utmpx
[src]
Auto Trait Implementations
impl RefUnwindSafe for Utmpx
impl Send for Utmpx
impl Sync for Utmpx
impl Unpin for Utmpx
impl UnwindSafe for Utmpx
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,