Expand description
This crate provides a reified dynamic error type, for using in cases, where one may want to be flexible about kinds of error for an operation.
The Problem
type allows to specify kind/type of an
error as a uri dynamically.
Along with that, the type allows to record a string message,
and lets us to attach custom extensions too.
Modules§
- type_
- I define
ProblemType
struct, that defines a problem type.
Macros§
- define_
anon_ problem_ types - Macro to easily define problem types in a namespace.
Structs§
- Problem
Problem
is a reified error type, encoding it’s problem type as a uri.- Problem
Builder - Builder for
Problem
.
Traits§
- Problem
Builder Ext - An extension trait for
ProblemBuilder
, that makes using extensions as typed record easier.
Type Aliases§
- Prob
Future - A type alias for boxed futures resolving to results with
Problem
error type. - Prob
Result - A type alias for results with
Problem
as their error type. - Prob
Stream - A type alias for boxed streams yielding items of results with
Problem
error type.