Module script::script_runtime
source Β· Expand description
The script runtime contains common traits and structs commonly used by the script thread, the dom, and the worker threads.
Structs§
- A wrapper around a JSContext that is Send, enabling an interrupt to be requested from a thread other than the one running JS using that context.
Enums§
- Common messages used to control the event loops in both the script and the worker
Constants§
- GC_CYCLE_START π
- GC_SLICE_START π
- THREAD_ACTIVE π
Statics§
- JOB_QUEUE_TRAPS π
- JS_ENGINE π
- SECURITY_CALLBACKS π
Traits§
- A cloneable interface for communicating with an event loop.
- An interface for receiving ScriptMsg values in an event loop. Used for synchronous DOM APIs that need to abstract over multiple kinds of event loops (worker/main thread) with different Receiver interfaces.
Functions§
- consume_stream π βImplements the steps to compile webassembly response mentioned here https://webassembly.github.io/spec/web-api/#compile-a-potential-webassembly-response
- content_security_policy_allows π β
- debug_gc_callback π β
- empty π β
- enqueue_promise_job π βSM callback for promise job resolution. Adds a promise callback to the current globalβs microtask queue.
- gc_slice_callback π β
- get_incumbent_global π β
- get_size π β
- in_range π
- new_rt_and_cx_with_parent π β
- promise_rejection_tracker π β
- report_stream_error π β
- runtime_is_alive π
- servo_build_id π β
- set_gc_zeal_options π β
- trace_rust_roots π β