Function gstd::msg::signal_code

source ·
pub fn signal_code() -> Result<Option<SignalCode>>
Expand description

Get the signal 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 gstd::msg;

#[no_mangle]
extern "C" fn handle_signal() {
    let signal_code = msg::signal_code().expect("Unable to get signal code");
}