[][src]Struct rpsutil::system::User

pub struct User {
    pub name: String,
    pub terminal: Option<String>,
    pub host: Option<String>,
    pub started: i32,
    pub pid: Option<i32>,
}

Struct to represent a system user.

Fields

name: String

The name of the user.

terminal: Option<String>

The tty or pseudo-tty associated with the user, if any.

host: Option<String>

The hostname associated with the entry, if any.

started: i32

The creation time as seconds since the epoch.

pid: Option<i32>

The PID of the logged in process.

Trait Implementations

impl Debug for User[src]

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

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