#[non_exhaustive]pub struct StackFrame {
pub function_name: Option<TruncatableString>,
pub original_function_name: Option<TruncatableString>,
pub file_name: Option<TruncatableString>,
pub line_number: i64,
pub column_number: i64,
pub load_module: Option<Module>,
pub source_version: Option<TruncatableString>,
/* private fields */
}Expand description
Represents a single stack frame in a stack trace.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.function_name: Option<TruncatableString>The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes).
original_function_name: Option<TruncatableString>An un-mangled function name, if function_name is mangled.
To get information about name mangling, run
this search.
The name can be fully-qualified (up to 1024 bytes).
file_name: Option<TruncatableString>The name of the source file where the function call appears (up to 256 bytes).
line_number: i64The line number in file_name where the function call appears.
column_number: i64The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions.
load_module: Option<Module>The binary module from where the code was loaded.
source_version: Option<TruncatableString>The version of the deployed source code (up to 128 bytes).
Implementations§
Source§impl StackFrame
impl StackFrame
pub fn new() -> Self
Sourcepub fn set_function_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_function_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sets the value of function_name.
Sourcepub fn set_or_clear_function_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_function_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Sets or clears the value of function_name.
Sourcepub fn set_original_function_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_original_function_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sets the value of original_function_name.
Sourcepub fn set_or_clear_original_function_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_original_function_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Sets or clears the value of original_function_name.
Sourcepub fn set_file_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_file_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sets the value of file_name.
Sourcepub fn set_or_clear_file_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_file_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Sets or clears the value of file_name.
Sourcepub fn set_line_number<T: Into<i64>>(self, v: T) -> Self
pub fn set_line_number<T: Into<i64>>(self, v: T) -> Self
Sets the value of line_number.
Sourcepub fn set_column_number<T: Into<i64>>(self, v: T) -> Self
pub fn set_column_number<T: Into<i64>>(self, v: T) -> Self
Sets the value of column_number.
Sourcepub fn set_load_module<T>(self, v: T) -> Self
pub fn set_load_module<T>(self, v: T) -> Self
Sets the value of load_module.
Sourcepub fn set_or_clear_load_module<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_load_module<T>(self, v: Option<T>) -> Self
Sets or clears the value of load_module.
Sourcepub fn set_source_version<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_source_version<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sets the value of source_version.
Sourcepub fn set_or_clear_source_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_source_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Sets or clears the value of source_version.
Trait Implementations§
Source§impl Clone for StackFrame
impl Clone for StackFrame
Source§fn clone(&self) -> StackFrame
fn clone(&self) -> StackFrame
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more