Crate dyn_problem

Source
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.
ProblemBuilder
Builder for Problem.

Traits§

ProblemBuilderExt
An extension trait for ProblemBuilder, that makes using extensions as typed record easier.

Type Aliases§

ProbFuture
A type alias for boxed futures resolving to results with Problem error type.
ProbResult
A type alias for results with Problem as their error type.
ProbStream
A type alias for boxed streams yielding items of results with Problem error type.