Module snafu::guide::examples::backtrace[][src]

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.

Backtraces aren’t yet supported by the stable Rust compiler. SNAFU provides a stable-compatible way of getting backtraces as well as support for the backtrace support in the nightly compiler. By default, backtraces are disabled. It is expected that the final executable adds SNAFU as a dependency and chooses the appropriate feature flag to enable backtraces.