aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/command/signalable_command_interface.rs
blob: 8777eb5eeecfbf6784ebc586633dc6355e987912 (plain)
1
2
3
4
5
6
7
8
9
10
//! ref: composer/vendor/symfony/console/Command/SignalableCommandInterface.php

/// 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);
}