Module util_error

Module util_error 

Source
Expand description

Contains error and result types for all the util functions.

Structs§

UtilError
Error type used by all models. Used as the error type in UtilError, which is used by all the controllers in the application.

Enums§

UtilErrorType
The type of UtilError that occured.

Functions§

as_util_error
Helper function for .map_err() chains to wrap any error as UtilError.
missing_util_error
Helper function for .ok_or_else() to create UtilError on None.

Type Aliases§

UtilResult
Used as the result types for all utils.