Struct cdp::debugger::ScriptParsedEvent
[−]
[src]
pub struct ScriptParsedEvent<'a> { pub script_id: ScriptId<'a>, pub url: Cow<'a, str>, pub start_line: i32, pub start_column: i32, pub end_line: i32, pub end_column: i32, pub execution_context_id: ExecutionContextId, pub hash: Cow<'a, str>, pub execution_context_aux_data: Option<Empty>, pub is_live_edit: Option<bool>, pub source_map_url: Option<Cow<'a, str>>, pub has_source_url: Option<bool>, pub is_module: Option<bool>, pub length: Option<i32>, pub stack_trace: Option<StackTrace<'a>>, }
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
Event Debugger.scriptParsed
Domain Module: cdp::debugger
Event Struct: cdp::debugger::ScriptParsedEvent
Fields
script_id: ScriptId<'a>
Identifier of the script parsed.
url: Cow<'a, str>
URL or name of the script parsed (if any).
start_line: i32
Line offset of the script within the resource with given URL (for script tags).
start_column: i32
Column offset of the script within the resource with given URL.
end_line: i32
Last line of the script.
end_column: i32
Length of the last line of the script.
execution_context_id: ExecutionContextId
Specifies script creation context.
hash: Cow<'a, str>
Content hash of the script.
execution_context_aux_data: Option<Empty>
Embedder-specific auxiliary data.
is_live_edit: Option<bool>
[Experimental] True, if this script is generated as a result of the live edit operation.
source_map_url: Option<Cow<'a, str>>
URL of source map associated with script (if any).
has_source_url: Option<bool>
[Experimental] True, if this script has sourceURL.
is_module: Option<bool>
[Experimental] True, if this script is ES6 module.
length: Option<i32>
[Experimental] This script length.
stack_trace: Option<StackTrace<'a>>
[Experimental] JavaScript top stack frame of where the script parsed event was triggered if available.
Trait Implementations
impl<'a> Clone for ScriptParsedEvent<'a>
[src]
fn clone(&self) -> ScriptParsedEvent<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for ScriptParsedEvent<'a>
[src]
impl<'a> PartialEq for ScriptParsedEvent<'a>
[src]
fn eq(&self, __arg_0: &ScriptParsedEvent<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ScriptParsedEvent<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpEvent for ScriptParsedEvent<'a>
[src]
const EVENT_NAME: &'static str
EVENT_NAME: &'static str = "Debugger.scriptParsed"
impl<'a> SerializeCdpEvent for ScriptParsedEvent<'a>
[src]
fn event_name(&self) -> &str
[src]
fn serialize_event_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpEvent<'de> for ScriptParsedEvent<'a>
[src]
fn deserialize_event<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,