[][src]Struct simple_libc::pwd::Passwd

pub struct Passwd {
    pub name: OsString,
    pub passwd: OsString,
    pub uid: UidT,
    pub gid: GidT,
    pub gecos_info: OsString,
    pub home_dir: OsString,
    pub shell: OsString,
}

Fields

name: OsStringpasswd: OsStringuid: UidTgid: GidTgecos_info: OsStringhome_dir: OsStringshell: OsString

Implementations

impl Passwd[src]

pub fn list() -> Result<Vec<Self>>[src]

pub fn lookup_name(name: &str) -> Result<Option<Self>>[src]

pub fn lookup_uid(uid: UidT) -> Result<Option<Self>>[src]

pub fn list_groups(&self) -> Result<Vec<Group>>[src]

Trait Implementations

impl Clone for Passwd[src]

impl Debug for Passwd[src]

Auto Trait Implementations

impl RefUnwindSafe for Passwd

impl Send for Passwd

impl Sync for Passwd

impl Unpin for Passwd

impl UnwindSafe for Passwd

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.