Module attachment

Module attachment 

Source
Expand description

Error attachment types and utilities for adding context to error reports.

Re-exports§

pub use error_stack;

Structs§

AlreadyPresent
Status indicator for something that is already present.
Dbg
Wrapper for types that only implement Debug to make them displayable.
DisplayDuration
Wrapper for Duration that 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 Frame stack consisting of Contexts 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§

ContextDeprecated
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.
ResultExt
Extension trait for Result to provide context information on Reports.

Functions§

hms_string
Convert a Duration into a human-readable “0H00m00s” format string.
simple_type_name
Extract the simple name of a type, removing module paths.