pub fn signal_code() -> Result<Option<SignalCode>>
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;
#[unsafe(no_mangle)]
extern "C" fn handle_signal() {
let signal_code = msg::signal_code().expect("Unable to get signal code");
}