Crate anyway

Crate anyway 

Source

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.
bail
Return early with an error.
ensure
Return early with an error if a condition is not satisfied.
format_err
Construct an ad-hoc error from a string or existing non-anyhow error value.

Structs§

Chain
Iterator of a chain of source errors.
Error
The Error type, a wrapper around a dynamic error type.

Traits§

Context
Provides the context method for Result.

Functions§

attempt
Poor man’s try block for Result.
maybe
Poor man’s try block for Option.
success
Similar to anyhow::Ok, but do not conflict with Result::Ok.

Type Aliases§

Result
I think Result<()> is ugly.