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
Auto Trait Implementations§
impl Freeze for ScriptToDevtoolsControlMsg
impl !RefUnwindSafe for ScriptToDevtoolsControlMsg
impl Send for ScriptToDevtoolsControlMsg
impl !Sync for ScriptToDevtoolsControlMsg
impl Unpin for ScriptToDevtoolsControlMsg
impl UnwindSafe for ScriptToDevtoolsControlMsg
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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