Crate devtools_traits

Crate devtools_traits 

Source
Expand description

This module contains shared types and messages for use by devtools/script. The traits are here instead of in script so that the devtools crate can be modified independently of the rest of Servo.

Since these types can be sent through the IPC channel and use non self-describing serializers, the flatten, skip*, tag and untagged serde annotations are not supported. Types like serde_json::Value aren’t supported either. For JSON serialization it is preferred to use a wrapper struct in the devtools crate instead.

Structs§

AttrInfo
AttrModification
AutoMargins
CSSError
ComputedNodeLayout
The properties of a DOM node as computed by layout.
ConsoleMessage
ConsoleMessageFields
CssDatabaseProperty
DevtoolsPageInfo
HttpRequest
HttpResponse
NodeInfo
NodeStyle
PageError
PauseFrameResult
RecommendedBreakpointLocation
RuleModification
SecurityInfoUpdate
SourceInfo
StackFrame
StartedTimelineMarker
TimelineMarker
WorkerId

Enums§

ChromeToDevtoolsControlMsg
Events that the devtools server must act upon.
ConsoleArgument
ConsoleLogLevel
DevtoolScriptControlMsg
Messages to process in a particular script thread, as instructed by a devtools client. TODO: better error handling, e.g. if pipeline id lookup fails?
DevtoolsControlMsg
Messages to instruct the devtools server to update its known actors/state according to changes in the browser.
EvaluateJSReply
Serialized JS return values TODO: generalize this beyond the EvaluateJS message?
NavigationState
The state of a page navigation.
NetworkEvent
ScriptToDevtoolsControlMsg
Events that the devtools server must act upon.
ShadowRootMode
TimelineMarkerType

Functions§

get_time_stamp