[][src]Enum daemonize::DaemonizeError

pub enum DaemonizeError {
    Fork,
    DetachSession(Errno),
    GroupNotFound,
    GroupContainsNul,
    SetGroup(Errno),
    UserNotFound,
    UserContainsNul,
    SetUser(Errno),
    ChangeDirectory,
    PathContainsNul,
    OpenPidfile,
    LockPidfile(Errno),
    ChownPidfile(Errno),
    RedirectStreams(Errno),
    WritePid,
    Chroot(Errno),
    // some variants omitted
}

This error type for Daemonize start method.

Variants

Fork

Unable to fork

DetachSession(Errno)

Unable to create new session

GroupNotFound

Unable to resolve group name to group id

GroupContainsNul

Group option contains NUL

SetGroup(Errno)

Unable to set group

UserNotFound

Unable to resolve user name to user id

UserContainsNul

User option contains NUL

SetUser(Errno)

Unable to set user

ChangeDirectory

Unable to change directory

PathContainsNul

pid_file option contains NUL

OpenPidfile

Unable to open pid file

LockPidfile(Errno)

Unable to lock pid file

ChownPidfile(Errno)

Unable to chown pid file

RedirectStreams(Errno)

Unable to redirect standard streams to /dev/null

WritePid

Unable to write self pid to pid file

Chroot(Errno)

Unable to chroot

Trait Implementations

impl PartialOrd<DaemonizeError> for DaemonizeError[src]

impl PartialEq<DaemonizeError> for DaemonizeError[src]

impl Clone for DaemonizeError[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for DaemonizeError[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Returns max if self is greater than max, and min if self is less than min. Otherwise this will return self. Panics if min > max. Read more

impl Eq for DaemonizeError[src]

impl Display for DaemonizeError[src]

impl Debug for DaemonizeError[src]

impl Error for DaemonizeError[src]

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.