Module traits

Module traits 

Source
Expand description

Core traits for error handling and composition Core traits for error handling and composition.

This module consolidates the key traits used throughout error-rail.

Traitsยง

BoxedResultExt
Extension trait for adding context to already-boxed ComposableError results.
ErrorCategory
Trait for types that can lift values and handle errors in a functorial way.
ErrorOps
Operations for error recovery and bidirectional mapping.
IntoErrorContext
Converts a type into an ErrorContext for error annotation.
ResultExt
Extension trait for ergonomic context addition to Result types.
TransientError
Classification of errors as transient or permanent.
TransientErrorExt
Extension methods for working with transient errors.
WithError
Abstraction over types that carry an error variant which can be remapped.