doc.rust-lang.org
pub fn symbol(&mut self, frame: &Frame, symbol: &super::Symbol) -> fmt::Result
Prints a raw traced Frame and Symbol, typically from within the raw callbacks of this crate.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn print_raw_with_column(&mut self, frame_ip: *mut c_void, symbol_name: Option<SymbolName<'_>>, filename: Option<BytesOrWideString<'_>>, lineno: Option<u32>, colno: Option<u32>) -> fmt::Result
Adds a raw frame to the backtrace output, including column information.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn print_raw(&mut self, frame_ip: *mut c_void, symbol_name: Option<SymbolName<'_>>, filename: Option<BytesOrWideString<'_>>, lineno: Option<u32>) -> fmt::Result
Adds a raw frame to the backtrace output.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct BacktraceFrameFmt<'fmt, 'a, 'b>
A formatter for just one frame of a backtrace.
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn new(fmt: &'a mut fmt::Formatter<'b>, format: PrintFmt, print_path: &'a mut dyn FnMut(&mut fmt::Formatter<'_>, BytesOrWideString<'_>) -> fmt::Result + 'b) -> Self
Create a new BacktraceFmt which will write output to the provided fmt.
associated_function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn message(&mut self, msg: &str) -> fmt::Result
Inserts a message in the backtrace output.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn frame(&mut self) -> BacktraceFrameFmt<'_, 'a, 'b>
Adds a frame to the backtrace output.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn formatter(&mut self) -> &mut fmt::Formatter<'b>
Return the inner formatter.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn finish(&mut self) -> fmt::Result
Completes the backtrace output.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn add_context(&mut self) -> fmt::Result
Prints a preamble for the backtrace about to be printed.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct BacktraceFmt<'a, 'b>
A formatter for backtraces.
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn trace_unsynchronized<F>(cb: F)
Same as trace, only unsafe as it's unsynchronized.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn symbol_address(&self) -> *mut c_void
Returns the starting symbol address of the frame of this function.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn sp(&self) -> *mut c_void
Returns the current stack pointer of this frame.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn module_base_address(&self) -> Option<*mut c_void>
Returns the base address of the module to which the frame belongs.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn ip(&self) -> *mut c_void
Returns the current instruction pointer of this frame.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Frame
A trait representing one frame of a backtrace, yielded to the trace function of this crate.
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub enum BacktraceStatus
The current status of a backtrace, indicating whether it was captured or whether it is empty for some other reason.
enum
std
Stable since 1.65.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn status(&self) -> BacktraceStatus
Returns the status of this backtrace, indicating whether this backtrace request was unsupported, disabled, or a stack trace was actually captured.
method
std
Stable since 1.65.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn force_capture() -> Backtrace
Forcibly captures a full backtrace, regardless of environment variable configuration.
associated_function
std
Stable since 1.65.0
Version 1.100.0-nightly