Expand description
Exposing complete backtraces to the location of the error.
Start by looking at the error type Error
.
Structs§
- SNAFU context selector for the
Error::SnafuErrorAsSource
variant - SNAFU context selector for the
Error::SourceErrorDoesNotHaveBacktrace
variant - SNAFU context selector for the
Error::UsedInTightLoop
variant - SNAFU context selector for the
Error::UsualCase
variant
Enums§
- This is a placeholder example and can be ignored.
- 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 asno_std
projects.