Skip to main content

callback_status

Function callback_status 

Source
pub fn callback_status(err: &FfiError) -> Result<(), ForeignError>
Expand description

Read the out_err slot a vtable entry of a method that doesn’t throw wrote: Ok(()) when the consumer succeeded, otherwise its failure with the code FOREIGN_ERROR_CODE (whatever code it wrote).

§Errors

Returns the consumer’s failure when err.code isn’t 0.