Re-exportsยง
use std::backtrace::Backtrace;๐use std::backtrace::BacktraceStatus;๐use std::cell::Cell;๐use std::fmt::Display;๐use std::fmt::Write;๐use std::panic::PanicHookInfo;๐use std::sync::Arc;๐use std::sync::LazyLock;๐use std::sync::Mutex;๐use std::env;๐use std::env;๐use std::mem;๐use std::panic;๐use std::panic;๐use std::thread;๐
Constantsยง
- CAPTURE_
BUF ๐
Functionsยง
- custom_
panic_ ๐hook - get_
location ๐ - install_
panic_ ๐hook - Installs a custom panic hook that will divert panic output to a thread-local capture buffer, but only for threads that have a capture buffer set.
- rust_
backtrace_ ๐full - set_
capture_ ๐buf - take_
capture_ ๐buf - trim_
backtrace ๐ - On stable, short backtraces are only available to the default panic hook, so if we want something similar we have to resort to string processing.
Type Aliasesยง
- Capture
Buf ๐ - Panic
Hook ๐