pub enum Error {
DaemonAlreadyRunning,
CloseDescriptors(Error),
ListOpenDescriptors(Error),
ResetSignals(Error),
BlockSignals(Error),
CreatePipe(Error),
Fork(Error),
ReadStatus(Error),
Daemon {
error: DaemonError,
cause: Error,
},
Initialization {
code: ErrorCode,
},
}
Expand description
Errors that can happen while daemonizing.
These errors are received in the invoking process, i.e. the proccess that called
daemonize()
.
Variants
DaemonAlreadyRunning
Daemon pid file already exists
CloseDescriptors(Error)
Failed to close file descriptors
ListOpenDescriptors(Error)
Failed to fetch open file descriptors
ResetSignals(Error)
Failed to reset signal handlers
BlockSignals(Error)
Failed to block signals
CreatePipe(Error)
Failed to create status reporting pipe
Fork(Error)
Failed to fork daemon process
ReadStatus(Error)
Failed to receive daemon status report
Daemon
Fields
error: DaemonError
The wrapped error sent by the forked process
cause: Error
The raw underlying error
Failed to start daemon after forking with a wrapped DaemonError
Initialization
Fields
code: ErrorCode
The received numeric representation of the error
Failure after daemonizing while initializing
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more