pub(crate) struct IntroductionType;
Expand description
introductionType
values in SpiderMonkey TransitiveCompileOptions.
Value definitions are based on the SpiderMonkey Debugger API docs: https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Source.html#introductiontype
Implementations§
Source§impl IntroductionType
impl IntroductionType
pub const EVAL_STR: &str = "eval"
Sourcepub const DEBUGGER_EVAL: &CStr = c"debugger eval"
pub const DEBUGGER_EVAL: &CStr = c"debugger eval"
introductionType
for code evaluated by debugger.
This includes code run via the devtools repl, even if the thread is not paused.
pub const DEBUGGER_EVAL_STR: &str = "debugger eval"
Sourcepub const FUNCTION: &CStr = c"Function"
pub const FUNCTION: &CStr = c"Function"
introductionType
for code passed to the Function
constructor.
pub const FUNCTION_STR: &str = "Function"
pub const WORKLET_STR: &str = "Worklet"
Sourcepub const EVENT_HANDLER: &CStr = c"eventHandler"
pub const EVENT_HANDLER: &CStr = c"eventHandler"
introductionType
for code assigned to DOM elements’ event handler IDL attributes as a string.
pub const EVENT_HANDLER_STR: &str = "eventHandler"
Sourcepub const SRC_SCRIPT: &CStr = c"srcScript"
pub const SRC_SCRIPT: &CStr = c"srcScript"
introductionType
for code belonging to <script src="file.js">
elements.
This includes <script type="module" src="...">
.
pub const SRC_SCRIPT_STR: &str = "srcScript"
Sourcepub const INLINE_SCRIPT: &CStr = c"inlineScript"
pub const INLINE_SCRIPT: &CStr = c"inlineScript"
introductionType
for code belonging to <script>code;</script>
elements.
This includes <script type="module" src="...">
.
pub const INLINE_SCRIPT_STR: &str = "inlineScript"
Sourcepub const INJECTED_SCRIPT: &CStr = c"injectedScript"
pub const INJECTED_SCRIPT: &CStr = c"injectedScript"
introductionType
for code belonging to scripts that would be "inlineScript"
except that they were not
part of the initial file itself.
For example, scripts created via:
document.write("<script>code;</script>")
var s = document.createElement("script"); s.text = "code";
pub const INJECTED_SCRIPT_STR: &str = "injectedScript"
Sourcepub const IMPORTED_MODULE: &CStr = c"importedModule"
pub const IMPORTED_MODULE: &CStr = c"importedModule"
introductionType
for code that was loaded indirectly by being imported by another script
using ESM static or dynamic imports.
pub const IMPORTED_MODULE_STR: &str = "importedModule"
Sourcepub const JAVASCRIPT_URL: &CStr = c"javascriptURL"
pub const JAVASCRIPT_URL: &CStr = c"javascriptURL"
introductionType
for code presented in javascript:
URLs.
pub const JAVASCRIPT_URL_STR: &str = "javascriptURL"
Sourcepub const DOM_TIMER: &CStr = c"domTimer"
pub const DOM_TIMER: &CStr = c"domTimer"
introductionType
for code passed to setTimeout
/setInterval
as a string.
pub const DOM_TIMER_STR: &str = "domTimer"
Sourcepub const WORKER: &CStr = c"Worker"
pub const WORKER: &CStr = c"Worker"
introductionType
for web workers.
FIXME: only documented in older(?) devtools user docs
https://firefox-source-docs.mozilla.org/devtools-user/debugger-api/debugger.source/index.html
pub const WORKER_STR: &str = "Worker"
Auto Trait Implementations§
impl Freeze for IntroductionType
impl RefUnwindSafe for IntroductionType
impl Send for IntroductionType
impl Sync for IntroductionType
impl Unpin for IntroductionType
impl UnwindSafe for IntroductionType
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
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more