tsunagu 0.1.0

Tsunagu (繋ぐ) — service/daemon IPC framework: Unix sockets, health checks, process management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Errors produced by the tsunagu IPC framework.
#[derive(Debug, thiserror::Error)]
pub enum TsunaguError {
    #[error("daemon not running at {path}")]
    DaemonNotRunning { path: String },

    #[error("daemon already running (pid {pid})")]
    DaemonAlreadyRunning { pid: u32 },

    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),

    #[error("health check failed: {0}")]
    HealthCheck(String),

    #[error("invalid PID file: {0}")]
    InvalidPidFile(String),
}