Function gstd::msg::signal_code
source · pub fn signal_code() -> Result<Option<SignalCode>, Error>
Expand description
Get the reply code of the message being processed.
This function is used in the reply handler to check whether the message was processed successfully or not.
§Examples
use gcore::msg;
#[no_mangle]
extern "C" fn handle_signal() {
let signal_code = msg::signal_code().expect("Unable to get signal code");
}