Module fail

Module fail 

Source
Expand description

A general purpose error type.

Macros§

err
Creates a new fail::Error from format args.
fail
Returns an Err containing a new fail::Error from format args.
when
Returns a fail::Error if a condition is true.
wrap
Returns a closure for using Result::map_err to wrap an error in a fail::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).