[−][src]Macro sn_ffi_utils::try_cb
Given a result, calls the callback if it is an error, otherwise produces the wrapped value.
Should be called within catch_unwind
, so returns None
on error.
The error must implement Debug + Display
.
Given a result, calls the callback if it is an error, otherwise produces the wrapped value.
Should be called within catch_unwind
, so returns None
on error.
The error must implement Debug + Display
.