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§
- Snafu
Error AsSource Snafu - SNAFU context selector for the
Error::SnafuErrorAsSourcevariant - Source
Error Does NotHave Backtrace Snafu - SNAFU context selector for the
Error::SourceErrorDoesNotHaveBacktracevariant - Used
InTight Loop Snafu - SNAFU context selector for the
Error::UsedInTightLoopvariant - Usual
Case Snafu - SNAFU context selector for the
Error::UsualCasevariant
Enums§
- Config
File Error - This is a placeholder example and can be ignored.
- Error
- Rust 1.65 stabilized the
std::backtrace::Backtracetype, 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_stdprojects.