Expand description
The interface to the Constellation
, which prevents other crates from depending directly on
the constellation
crate itself. In addition to all messages to the Constellation
, this
crate is responsible for defining types that cross the process boundary from the
embedding/rendering layer all the way to script, thus it should have very minimal dependencies
on other parts of Servo.
Modules§
- from_
script_ đź”’message - Messages send from the ScriptThread to the Constellation.
- structured_
data đź”’ - This module contains implementations of structured data as described in https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data
Structs§
- Auxiliary
WebView Creation Request - Specifies the information required to load an auxiliary browsing context.
- Auxiliary
WebView Creation Response - Constellation’s response to auxiliary browsing context creation requests.
- Blob
Impl - The data backing a DOM Blob.
- Broadcast
Channel Msg - Message for communication between the constellation and a global managing broadcast channels.
- DOMMessage
- Message that gets passed to service worker scope on postMessage
- DomException
- A serializable version of the DOMException interface.
- DomMatrix
- A serializable version of the DOMMatrix/DOMMatrixReadOnly interface.
- DomPoint
- A serializable version of the DOMPoint/DOMPointReadOnly interface.
- DomQuad
- A serializable version of the DOMQuad interface.
- DomRect
- A serializable version of the DOMRect/DOMRectReadOnly interface.
- File
Blob - File-based blob
- IFrame
Load Info - Specifies the information required to load an iframe.
- IFrame
Load Info With Data - Specifies the information required to load a URL in an iframe.
- IFrame
Size Msg - An iframe sizing operation.
- Job
- https://w3c.github.io/ServiceWorker/#dfn-job
- Load
Data - can be passed to
LoadUrl
to load a page with GET/POST parameters or headers - Message
Port Impl - The data and logic backing the DOM managed MessagePort.
- Port
Message Task - A task on the https://html.spec.whatwg.org/multipage/#port-message-queue
- Port
Transfer Info - The information needed by a global to process the transfer of a port.
- SWManager
Senders - Channels to allow service worker manager to communicate with constellation and resource thread
- Scope
Things - Entities required to spawn service workers
- Script
ToConstellation Chan - A Script to Constellation channel.
- Serializable
Image Bitmap - A serializable version of the ImageBitmap interface.
- Serializable
Iter - An iterator over the variants of Serializable
- Serializable
Quota Exceeded Error - A serializable version of the QuotaExceededError interface.
- Structured
Serialized Data - A data-holder for serialized data and transferred objects. https://html.spec.whatwg.org/multipage/#structuredserializewithtransfer
- Transferable
Offscreen Canvas - A struct supporting the transfer of OffscreenCanvas, which loosely corresponds to the dataHolder in https://html.spec.whatwg.org/multipage/#the-offscreencanvas-interface:offscreencanvas-16
- Transferrable
Iter - An iterator over the variants of Transferrable
- Transform
Stream Data - Worker
Global Scope Init - Resources required by workerglobalscopes
- Worker
Script Load Origin - Common entities representing a network load origin
Enums§
- Blob
Data - Different backends of Blob
- Document
State - Used to determine if a script has any pending asynchronous activity.
- Embedder
ToConstellation Message - Messages to the Constellation from the embedding layer, whether from
ServoRenderer
or fromlibservo
itself. - IFrame
Sandbox State - Whether the sandbox attribute is present for an iframe element
- JobError
- The kind of error the job promise should be rejected with.
- JobResult
- Messages sent from Job algorithms steps running in the SW manager, in order to resolve or reject the job promise.
- JobResult
Value - Jobs are resolved with the help of various values.
- JobType
- https://w3c.github.io/ServiceWorker/#dfn-job-type
- JsEval
Result - The result of evaluating a javascript scheme url.
- Load
Origin - The origin where a given load was initiated. Useful for origin checks, for example before evaluation a JS URL.
- LogEntry
- A log entry reported to the constellation
We don’t report all log entries, just serious ones.
We need a separate type for this because
LogLevel
isn’t serializable. - Message
Port Msg - Messages for communication between the constellation and a global managing ports.
- Navigation
History Behavior - https://html.spec.whatwg.org/multipage/#navigation-supporting-concepts:navigationhistorybehavior
- Paint
Metric Event - A description of a paint metric that is sent from the Servo renderer to the constellation.
- SWManager
Msg - Messages outgoing from the Service Worker Manager thread to constellation
- Script
ToConstellation Message - Messages from the script to the constellation.
- Serializable
- All the DOM interfaces that can be serialized.
- Service
Worker Msg - Messages sent to Service Worker Manager thread
- Transferrable
- All the DOM interfaces that can be transferred.
- Traversal
Direction - The direction of a history traversal
- Window
Size Type - The type of window size change.
Traits§
- Service
Worker Manager Factory - This trait allows creating a
ServiceWorkerManager
without depending on thescript
crate.