#[repr(C)]pub struct _cef_v8_stack_frame_t {
pub base: cef_base_ref_counted_t,
pub is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>,
pub get_script_name: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t>,
pub get_script_name_or_source_url: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t>,
pub get_function_name: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t>,
pub get_line_number: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>,
pub get_column: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>,
pub is_eval: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>,
pub is_constructor: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>,
}Expand description
Structure representing a V8 stack frame handle. V8 handles can only be accessed from the thread on which they are created. Valid threads for creating a V8 handle include the render process main thread (TID_RENDERER) and WebWorker threads. A task runner for posting tasks on the associated thread can be retrieved via the cef_v8_context_t::get_task_runner() function.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>Returns true (1) if the underlying handle is valid and it can be accessed on the current thread. Do not call any other functions if this function returns false (0).
get_script_name: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t>Returns the name of the resource script that contains the function.
get_script_name_or_source_url: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t>Returns the name of the resource script that contains the function or the sourceURL value if the script name is undefined and its source ends with a “//@ sourceURL=…” string.
get_function_name: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t>Returns the name of the function.
get_line_number: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>Returns the 1-based line number for the function call or 0 if unknown.
get_column: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>Returns the 1-based column offset on the line for the function call or 0 if unknown.
is_eval: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>Returns true (1) if the function was compiled using eval().
is_constructor: Option<unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> c_int>Returns true (1) if the function was called as a constructor via “new”.
Trait Implementations§
Source§impl Clone for _cef_v8_stack_frame_t
impl Clone for _cef_v8_stack_frame_t
Source§fn clone(&self) -> _cef_v8_stack_frame_t
fn clone(&self) -> _cef_v8_stack_frame_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more