Module error

Source

Functions§

clear_app_error
just_try
Just returns the Result, so you can easily gather ? uses.
set_app_error_if_absent
Sets a thread-local error that can be retrieved with take_app_error(), if one wasn’t set already.
take_app_error
Clears the app error and returns it.
try_or_panic
Panics on Err, with debug-stringified payload. Returns the Ok value.
try_or_post_quit
Calls set_app_error_if_absent() and PostQuitMessage(1) on Err. Returns the Ok value in Some.
try_or_quit_now
Calls set_app_error_if_absent() and super::msg_loop::quit_now(1) on Err. Returns the Ok value in Some.
try_or_set_app_error
Calls set_app_error_if_absent() on Err. Returns the Ok value in Some.
try_then_favor_app_error
After running the action, returns the error from take_app_error(), or, if not present, the action’s Result.