aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/command/signalable_command_interface.rs
blob: 1af4a9601f8c99c9d8866d1e7351dc0a3079d01e (plain)
1
2
3
4
5
6
7
8
/// Interface for command reacting to signal.
pub trait SignalableCommandInterface {
    /// Returns the list of signals to subscribe.
    fn get_subscribed_signals(&self) -> Vec<i64>;

    /// The method will be called when the application is signaled.
    fn handle_signal(&mut self, signal: i64);
}