pub enum ScriptToDevtoolsControlMsg {
NewGlobal((BrowsingContextId, PipelineId, Option<WorkerId>), IpcSender<DevtoolScriptControlMsg>, DevtoolsPageInfo),
Navigate(BrowsingContextId, NavigationState),
ConsoleAPI(PipelineId, ConsoleMessage, Option<WorkerId>),
FramerateTick(String, f64),
ReportCSSError(PipelineId, CSSError),
ReportPageError(PipelineId, PageError),
TitleChanged(PipelineId, String),
}
Expand description
Events that the devtools server must act upon.
Variants§
NewGlobal((BrowsingContextId, PipelineId, Option<WorkerId>), IpcSender<DevtoolScriptControlMsg>, DevtoolsPageInfo)
A new global object was created, associated with a particular pipeline. The means of communicating directly with it are provided.
The given browsing context is performing a navigation.
ConsoleAPI(PipelineId, ConsoleMessage, Option<WorkerId>)
A particular page has invoked the console API.
FramerateTick(String, f64)
An animation frame with the given timestamp was processed in a script thread. The actor with the provided name should be notified.
ReportCSSError(PipelineId, CSSError)
Report a CSS parse error for the given pipeline
ReportPageError(PipelineId, PageError)
Report a page error for the given pipeline
TitleChanged(PipelineId, String)
Report a page title change
Trait Implementations§
source§impl Debug for ScriptToDevtoolsControlMsg
impl Debug for ScriptToDevtoolsControlMsg
source§impl<'de> Deserialize<'de> for ScriptToDevtoolsControlMsg
impl<'de> Deserialize<'de> for ScriptToDevtoolsControlMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more