Expand description
Error types and helpers.
Modules§
- utils
- Helper traits, types, and functions.
Structs§
- Backtrace
- Representation of a backtrace.
- Backtrace
Raw - Representation of a backtrace.
- Backtrace
Resolver - Backtrace resolver.
- Error
- An error container.
- Error
Message - A lightweight owned error message.
- Error
Message Chained - An owned error message with an optional source error.
- Failure
- Type-erased container holding error information.
- Failure
Diagnostic - Type-erased diagnostic view of a
Failure. - Result
Signature - Helper type holding a result classification signature.
- Success
- Marker diagnostic type representing a successful result.
Enums§
- Result
Type - The type of the result.
Traits§
- AsError
- Provides access to an error’s diagnostic representation.
- Error
Diagnostic - Provides diagnostic information for errors.
- Error
Mapping - Helper trait for converting a value into a unified error-aware result type.
- Into
Failure - Helper trait for converting a value into a type-erased
Failure. - Retryable
- The retry policy of the error.
Functions§
- fmt_
diag - Formats a full diagnostic view of an error for logging and tracing.
- fmt_
diag_ string - Formats a full diagnostic view of an error for logging and tracing.
- fmt_
diag_ typ - Formats a full diagnostic view of an error for logging and tracing.
- fmt_err
- Writes an error and its source chain.
- fmt_
err_ string - Formats an error and its source chain into a string.
- set_
backtrace_ start - Sets the source location where rendered backtraces are cut off.
- with_
service - Executes a future and ensures an error service is set.