Enum daemonize::User [] [src]

pub enum User {
    Name(String),
    Id(uid_t),
}

Expects system user id or name. If name is provided it will be resolved to id later.

Variants

Name(String)Id(uid_t)

Trait Implementations

impl Debug for User
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> From<&'a str> for User
[src]

fn from(t: &'a str) -> User

Performs the conversion.

impl From<uid_t> for User
[src]

fn from(t: uid_t) -> User

Performs the conversion.

impl<'a> From<&'a String> for User
[src]

fn from(t: &'a String) -> User

Performs the conversion.