Skip to main content

set_rust_backtrace_override

Function set_rust_backtrace_override 

Source
pub fn set_rust_backtrace_override(value: RustBacktrace)
Expand description

Force rust_backtrace to return value on the current thread, taking precedence over the environment until clear_rust_backtrace_override.

This is the precise, scoped lever — it affects only backtraces captured on this thread, not threads spawned afterwards. For process-wide control use the RUST_LIB_BACKTRACE / RUST_BACKTRACE environment variables instead.