[][src]Enum coreutils_core::os::utmpx::UtmpxKind

#[repr(u16)]#[non_exhaustive]pub enum UtmpxKind {
    Accounting,
    BootTime,
    DeadProcess,
    Empty,
    InitProcess,
    LoginProcess,
    NewTime,
    OldTime,
    RunLevel,
    Signature,
    ShutdownProcess,
    UserProcess,
    DownTime,
}

Possible types of a Utmpx instance.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Accounting

Not sure yet. (Linux and MacOS exclusive)

BootTime

Time of a system boot.

DeadProcess

A session leader exited.

Empty

No valid user accounting information.

InitProcess

A process spawned by init(8).

LoginProcess

The session leader of a logged-in user.

NewTime

Time after system clock change.

OldTime

Time before system clock change.

RunLevel

Run level. Provided for compatibility, not used on NetBSD.

Signature

Not sure yet. (MacOS exclusive)

ShutdownProcess

The session leader of a time of system shutdown.

UserProcess
DownTime

Trait Implementations

impl Clone for UtmpxKind[src]

impl Copy for UtmpxKind[src]

impl Debug for UtmpxKind[src]

impl Eq for UtmpxKind[src]

impl Hash for UtmpxKind[src]

impl Ord for UtmpxKind[src]

impl PartialEq<UtmpxKind> for UtmpxKind[src]

impl PartialOrd<UtmpxKind> for UtmpxKind[src]

impl StructuralEq for UtmpxKind[src]

impl StructuralPartialEq for UtmpxKind[src]

impl TryFrom<UtmpxKind> for i8[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for i16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for i64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for i128[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for u8[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for u16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for u32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for u64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UtmpxKind> for u128[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i128> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i16> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i32> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i64> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<i8> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<u128> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<u16> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<u32> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<u64> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<u8> for UtmpxKind[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.