Skip to main content

Module backtrace

Module backtrace 

Source
Available on crate feature guide only.
Expand description

Exposing complete backtraces to the location of the error.

Start by looking at the error type Error.

Structs§

SnafuErrorAsSourceSnafu
SNAFU context selector for the Error::SnafuErrorAsSource variant
SourceErrorDoesNotHaveBacktraceSnafu
SNAFU context selector for the Error::SourceErrorDoesNotHaveBacktrace variant
UsedInTightLoopSnafu
SNAFU context selector for the Error::UsedInTightLoop variant
UsualCaseSnafu
SNAFU context selector for the Error::UsualCase variant

Enums§

ConfigFileError
This is a placeholder example and can be ignored.
Error
Rust 1.65 stabilized the std::backtrace::Backtrace type, but there’s not yet a stable abstraction for accessing a backtrace from an arbitrary error value. SNAFU provides a stable-compatible way of accessing backtraces on a SNAFU-created error type. SNAFU also supports environments where backtraces are not available, such as no_std projects.