Expand description
Error attachment types and utilities for adding context to error reports.
Re-exports§
pub use error_stack;
Structs§
- Already
Present - Status indicator for something that is already present.
- Dbg
- Wrapper for types that only implement
Debugto make them displayable. - Display
Duration - Wrapper for
Durationthat provides human-readable display formatting. - Expectation
- Attachment that shows expected vs actual values.
- Field
- Represents a field or property with its associated status.
- FromTo
- Attachment that shows a conversion from one type to another.
- Index
- Wrapper that explicitly indicates a value is being used as an index key.
- Invalid
- Status indicator for something that is invalid.
- KeyValue
- A simple key-value pair attachment for error reports.
- Missing
- Status indicator for something that is missing.
- Report
- Contains a
Framestack consisting ofContexts and attachments. - Type
- Wrapper attachment that refers to the type of an object rather than its value.
- Unsupported
- Status indicator for something that is unsupported.
Traits§
- Context
Deprecated - Defines the current context of a
Report. - Debug
- Trait alias for types that can be debug-formatted and used in error attachments.
- Display
- Trait alias for types that can be displayed and used in error attachments.
- Result
Ext - Extension trait for
Resultto provide context information onReports.
Functions§
- hms_
string - Convert a
Durationinto a human-readable “0H00m00s” format string. - simple_
type_ name - Extract the simple name of a type, removing module paths.