pub struct Frame {
pub ip: u64,
pub function: Option<String>,
pub file: Option<String>,
pub line: Option<u32>,
pub module: Option<String>,
}Expand description
A single frame in a stack trace
Fields§
§ip: u64Instruction pointer
function: Option<String>Function name (if resolved)
file: Option<String>File name (if available)
line: Option<u32>Line number (if available)
module: Option<String>Module/library name
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn new_unresolved(ip: u64) -> Self
pub fn new_unresolved(ip: u64) -> Self
Create a new unresolved frame
Sourcepub fn is_symbolized(&self) -> bool
pub fn is_symbolized(&self) -> bool
Check if the frame has been symbolized
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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