Crate failure_ext

Source
Expand description

Crate extending functionality of the anyhow crate

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<T> 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
SlogKVErrorWithoutBackTrace
Wrapper around Error that implements slog::KV trait, but without backtraces

Enums§

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

Traits§

FutureErrorContext
“Context” support for futures.
StreamErrorContext
“Context” support for streams.

Functions§

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