robotech 1.6.3

Backend service implementation for the RoboTech platform, providing RESTful APIs and business logic for web applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::env::EnvError;
use std::path::PathBuf;
use thiserror::Error;
use wheel_rs::process::{PidError, ProcessError};

#[derive(Error, Debug)]
pub enum SignalManagerError {
    #[error("{0}")]
    GetEnv(#[from] EnvError),
    #[error("PID error: {0}")]
    Pid(#[from] PidError),
    #[error("Process error: {0}")]
    Process(#[from] ProcessError),
    #[error("PID file not found: {0}")]
    NotFoundPidFile(PathBuf),
    #[error("Program is running: {0}")]
    ProgramIsRunning(u32),
}