Enum spirit_daemonize::SecId[][src]

pub enum SecId {
    Name(String),
    Id(u32),
    Nothing,
}

Configuration of either user or a group.

This is used to load the configuration into which user and group to drop privileges.

Variants

Look up based on the name (in /etc/passwd or /etc/group).

Don't look up, use this as either uid or gid directly.

Don't drop privileges.

This is not read from configuration, but it is the default value available if nothing is listed in configuration.

Trait Implementations

impl Clone for SecId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SecId
[src]

Formats the value using the given formatter. Read more

impl Eq for SecId
[src]

impl PartialEq for SecId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for SecId
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for SecId

impl Sync for SecId