[][src]Crate failure_ext

Crate extending functionality of failure and anyhow crates

Re-exports

pub use failure;

Modules

prelude

A "prelude" of failure_ext crate.

Macros

err_downcast

Downcast matching.

err_downcast_ref

Downcast matching.

Structs

Compat

Temporary immitation of failure::Compat to ease migration.

DisplayChain

Shallow wrapper struct around anyhow::Error with std::fmt::Display implementation that shows the entire chain of errors

SlogKVError

Wrapper around Error that implements slog::KV trait, so it might be used in slog logging

Enums

SlogKVErrorKey

Enum used in slog::Serializer implementation when SlogKVError is used

Traits

FutureFailureErrorExt

"Context" support for futures where the error is anyhow::Error.

FutureFailureExt

"Context" support for futures where the error is an implementation of std::error::Error.

StreamFailureErrorExt

"Context" support for streams where the error is an implementation of anyhow::Error.

StreamFailureExt

"Context" support for streams where the error is an implementation of std::error::Error.

Functions

cause

Like Fail::cause, but handles SharedError whose Fail implementation does not return the right underlying error.

convert

Convert error implementing failure::Fail to anyhow::Error