Skip to main content

Module error

Module error 

Source
Expand description

Defines shared error and result types.

Errors retain protocol and transport context across crate boundaries. The module also provides the macros used to construct and report them.

Modulesยง

err ๐Ÿ”’
Error construction macros
log ๐Ÿ”’
panic ๐Ÿ”’
response ๐Ÿ”’
serde ๐Ÿ”’

Enumsยง

Error
Unifies failures raised by the core crate.

Staticsยง

_IS_REF_UNWIND_SAFE ๐Ÿ”’
_IS_SEND ๐Ÿ”’
_IS_SYNC ๐Ÿ”’
_IS_UNWIND_SAFE ๐Ÿ”’

Functionsยง

default_debug_log
Debug-logs an error and returns a default value.
default_log
Logs an error and returns a default value.
else_debug_log
Debug-logs an error and recovers with a default value in an infallible result.
else_log
Logs an error and recovers with a default value in an infallible result.
error_chain
Flatten an errorโ€™s source() chain into one ; caused by: string.
infallible
Marks an impossible Infallible error path.
inspect_debug_log
Logs an errorโ€™s debug representation through the debug-aware error path.
inspect_debug_log_level
Logs a debug-formatted error at the selected debug-aware tracing level.
inspect_log
Logs an errorโ€™s display representation at error level.
inspect_log_level
Logs a display-formatted error at the selected tracing level.
map_debug_log
Converts and debug-logs an error while returning the converted value.
map_log
Converts and logs an error while returning the converted value.
sanitized_message
Produces a public-safe message from an owned error.
visit
Dispatches structured error fields and records their formatted message.