pub enum DaemonizeError {
Show 16 variants
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
}Expand description
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§
Source§impl Clone for DaemonizeError
impl Clone for DaemonizeError
Source§fn clone(&self) -> DaemonizeError
fn clone(&self) -> DaemonizeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DaemonizeError
impl Debug for DaemonizeError
Source§impl Display for DaemonizeError
impl Display for DaemonizeError
Source§impl Error for DaemonizeError
impl Error for DaemonizeError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl Ord for DaemonizeError
impl Ord for DaemonizeError
Source§fn cmp(&self, other: &DaemonizeError) -> Ordering
fn cmp(&self, other: &DaemonizeError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DaemonizeError
impl PartialEq for DaemonizeError
Source§impl PartialOrd for DaemonizeError
impl PartialOrd for DaemonizeError
impl Eq for DaemonizeError
impl StructuralPartialEq for DaemonizeError
Auto Trait Implementations§
impl Freeze for DaemonizeError
impl RefUnwindSafe for DaemonizeError
impl Send for DaemonizeError
impl Sync for DaemonizeError
impl Unpin for DaemonizeError
impl UnwindSafe for DaemonizeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more