pub trait StackTraceProvider {
type Error;
// Required methods
fn get_stack_trace(
&self,
thread_id: i64,
start_frame: usize,
levels: Option<usize>,
) -> Result<Vec<StackFrame>, Self::Error>;
fn total_frames(&self, thread_id: i64) -> Result<usize, Self::Error>;
fn get_frame(
&self,
frame_id: i64,
) -> Result<Option<StackFrame>, Self::Error>;
}Expand description
Trait for providing stack traces.
Implementations of this trait retrieve stack trace information from a debugging session.
Required Associated Types§
Required Methods§
Sourcefn get_stack_trace(
&self,
thread_id: i64,
start_frame: usize,
levels: Option<usize>,
) -> Result<Vec<StackFrame>, Self::Error>
fn get_stack_trace( &self, thread_id: i64, start_frame: usize, levels: Option<usize>, ) -> Result<Vec<StackFrame>, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".