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ยง
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
Infallibleerror 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.