Module snafu::guide::examples::backtrace

source ·
Expand description

Exposing complete backtraces to the location of the error.

Start by looking at the error type Error.

Structs§

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 as no_std projects.