pub struct Frame {
pub function: Option<String>,
pub path: Option<String>,
pub line: Option<usize>,
pub column: Option<usize>,
pub source: Option<String>,
pub metadata: Vec<(String, String)>,
pub library: bool,
}Expand description
One stack frame.
Fields§
§function: Option<String>The function, method or symbol, when the trace names one.
path: Option<String>The source file.
line: Option<usize>The 1-based line.
column: Option<usize>The 1-based column.
source: Option<String>The source line, when the trace quotes it (Python does).
metadata: Vec<(String, String)>Language-specific details kept from the trace (module, native, …).
library: boolWhether the frame is in a standard library, runtime or dependency rather than the application.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.