[][src]Struct fungus::sys::user::User

pub struct User {
    pub uid: u32,
    pub gid: u32,
    pub name: String,
    pub home: PathBuf,
    pub shell: PathBuf,
    pub ruid: u32,
    pub rgid: u32,
    pub realname: String,
    pub realhome: PathBuf,
    pub realshell: PathBuf,
}

User provides options for a specific user.

Fields

uid: u32gid: u32name: Stringhome: PathBufshell: PathBufruid: u32rgid: u32realname: Stringrealhome: PathBufrealshell: PathBuf

Implementations

impl User[src]

pub fn is_root(&self) -> bool[src]

Returns true if the user is root

Examples

use fungus::prelude::*;

assert_eq!(user::current().unwrap().is_root(), false);

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

impl Default for User[src]

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> Same<T> for T

type Output = T

Should always be Self

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.