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 theOk
value. - try_
or_ post_ quit - Calls
set_app_error_if_absent()
andPostQuitMessage(1)
onErr
. Returns theOk
value inSome
. - try_
or_ quit_ now - Calls
set_app_error_if_absent()
andsuper::msg_loop::quit_now(1)
onErr
. Returns theOk
value inSome
. - try_
or_ set_ app_ error - Calls
set_app_error_if_absent()
onErr
. Returns theOk
value inSome
. - try_
then_ favor_ app_ error - After running the action, returns the error from
take_app_error()
, or, if not present, the action’sResult
.