Module prelude

Module prelude 

Source
Expand description

A prelude of the main items required to use this type effectively.

This includes the important items from the snafu prelude, so you do not have to include the snafu prelude.

Re-exports§

pub use crate::HttpResult;
pub use crate::HttpWhatever;
pub use snafu::OptionExt as _;
pub use snafu::ResultExt as _;

Macros§

ensure
Ensure a condition is true. If it is not, return from the function with an error.
ensure_whatever
Ensure a condition is true. If it is not, return a stringly-typed error message.
http_err
A macro to help format the standard message strings used by this error type.
whatever
Instantiate and return a stringly-typed error message.