Expand description
A general purpose error type.
Macros§
- err
- Creates a new
fail::Errorfrom format args. - fail
- Returns an
Errcontaining a newfail::Errorfrom format args. - when
- Returns a
fail::Errorif a condition istrue. - wrap
- Returns a closure for using
Result::map_errto wrap an error in afail::Error.
Structs§
- Error
- A generic cloneable error.
Functions§
- from
- Create a new [
Error] from a given error.
Type Aliases§
- Result
- Represents either success (
Ok) or failure (Err).