Struct breakpad_symbols::SimpleFrame
source · pub struct SimpleFrame {
pub instruction: u64,
pub function: Option<String>,
pub function_base: Option<u64>,
pub parameter_size: Option<u32>,
pub source_file: Option<String>,
pub source_line: Option<u32>,
pub source_line_base: Option<u64>,
}
Expand description
A simple implementation of FrameSymbolizer
that just holds data.
Fields§
§instruction: u64
The program counter value for this frame.
function: Option<String>
The name of the function in which the current instruction is executing.
function_base: Option<u64>
The offset of the start of function
from the module base.
parameter_size: Option<u32>
The size, in bytes, that this function’s parameters take up on the stack.
source_file: Option<String>
The name of the source file in which the current instruction is executing.
source_line: Option<u32>
The 1-based index of the line number in source_file
in which the current instruction is
executing.
source_line_base: Option<u64>
The offset of the start of source_line
from the function base.
Implementations§
source§impl SimpleFrame
impl SimpleFrame
sourcepub fn with_instruction(instruction: u64) -> SimpleFrame
pub fn with_instruction(instruction: u64) -> SimpleFrame
Instantiate a SimpleFrame
with instruction pointer instruction
.
Trait Implementations§
source§impl Debug for SimpleFrame
impl Debug for SimpleFrame
source§impl Default for SimpleFrame
impl Default for SimpleFrame
source§fn default() -> SimpleFrame
fn default() -> SimpleFrame
Returns the “default value” for a type. Read more
source§impl FrameSymbolizer for SimpleFrame
impl FrameSymbolizer for SimpleFrame
source§fn get_instruction(&self) -> u64
fn get_instruction(&self) -> u64
Get the program counter value for this frame.
source§fn set_function(&mut self, name: &str, base: u64, parameter_size: u32)
fn set_function(&mut self, name: &str, base: u64, parameter_size: u32)
Set the name, base address, and parameter size of the function in
which this frame is executing.
Auto Trait Implementations§
impl RefUnwindSafe for SimpleFrame
impl Send for SimpleFrame
impl Sync for SimpleFrame
impl Unpin for SimpleFrame
impl UnwindSafe for SimpleFrame
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more