Trait CodeAndMessage

Source
pub trait CodeAndMessage {
    // Required method
    fn set_error(
        &mut self,
        code_and_message: (FCPResponseStatus, *const c_char),
    );
}
Expand description

All FFI responses need to implement this trait in order to be able to use catch_panic()

Required Methods§

Source

fn set_error(&mut self, code_and_message: (FCPResponseStatus, *const c_char))

Set the status code and error message

Implementors§