A flexible and configurable Rust daemon library with lifecycle management, logging, callbacks, and optional async support. Works on Linux, macOS, and Windows.
//! Error handling for the daemon library.
//!//! This module defines the `DaemonError` enum, which represents errors that can occur
//! during the daemon's lifecycle.
usethiserror::Error;/// Represents errors that can occur in the daemon.
#[derive(Debug, Error)]pubenumDaemonError{#[error("Daemon is already running")]
AlreadyRunning,#[error("Daemon is not running")]
NotRunning,#[error("Custom error: {0}")]
CustomError(String),}