aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/seld/signal/signal_handler.rs
blob: c592fc54c9cf14278793ef94497d2808ea094f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[derive(Debug)]
pub struct SignalHandler;

impl SignalHandler {
    pub const SIGINT: &'static str = "SIGINT";
    pub const SIGTERM: &'static str = "SIGTERM";
    pub const SIGHUP: &'static str = "SIGHUP";

    pub fn create(
        signals: Vec<String>,
        callback: Box<dyn Fn(String, &SignalHandler)>,
    ) -> Self {
        todo!()
    }

    pub fn unregister(&self) {
        todo!()
    }
}