pub enum PageEvents {
Show 24 variants
DomContentEventFired(DomContentEventFired),
FileChooserOpened(FileChooserOpened),
FrameAttached(FrameAttached),
FrameDetached(FrameDetached),
FrameSubtreeWillBeDetached(FrameSubtreeWillBeDetached),
FrameNavigated(FrameNavigated),
DocumentOpened(DocumentOpened),
FrameResized(FrameResized),
FrameStartedNavigating(FrameStartedNavigating),
FrameRequestedNavigation(FrameRequestedNavigation),
FrameStartedLoading(FrameStartedLoading),
FrameStoppedLoading(FrameStoppedLoading),
InterstitialHidden(InterstitialHidden),
InterstitialShown(InterstitialShown),
JavascriptDialogClosed(JavascriptDialogClosed),
JavascriptDialogOpening(JavascriptDialogOpening),
LifecycleEvent(LifecycleEvent),
BackForwardCacheNotUsed(BackForwardCacheNotUsed),
LoadEventFired(LoadEventFired),
NavigatedWithinDocument(NavigatedWithinDocument),
ScreencastFrame(ScreencastFrame),
ScreencastVisibilityChanged(ScreencastVisibilityChanged),
WindowOpen(WindowOpen),
CompilationCacheProduced(CompilationCacheProduced),
}Variants§
DomContentEventFired(DomContentEventFired)
FileChooserOpened(FileChooserOpened)
FrameAttached(FrameAttached)
FrameDetached(FrameDetached)
FrameSubtreeWillBeDetached(FrameSubtreeWillBeDetached)
DocumentOpened(DocumentOpened)
FrameResized(FrameResized)
FrameStartedLoading(FrameStartedLoading)
FrameStoppedLoading(FrameStoppedLoading)
InterstitialHidden(InterstitialHidden)
InterstitialShown(InterstitialShown)
JavascriptDialogClosed(JavascriptDialogClosed)
JavascriptDialogOpening(JavascriptDialogOpening)
LifecycleEvent(LifecycleEvent)
BackForwardCacheNotUsed(BackForwardCacheNotUsed)
LoadEventFired(LoadEventFired)
ScreencastFrame(ScreencastFrame)
ScreencastVisibilityChanged(ScreencastVisibilityChanged)
WindowOpen(WindowOpen)
CompilationCacheProduced(CompilationCacheProduced)
Implementations§
Source§impl PageEvents
impl PageEvents
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for PageEvents
impl Clone for PageEvents
Source§fn clone(&self) -> PageEvents
fn clone(&self) -> PageEvents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageEvents
impl Debug for PageEvents
Source§impl<'de> Deserialize<'de> for PageEvents
impl<'de> Deserialize<'de> for PageEvents
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
Source§impl From<BackForwardCacheNotUsed> for PageEvents
impl From<BackForwardCacheNotUsed> for PageEvents
Source§fn from(v: BackForwardCacheNotUsed) -> Self
fn from(v: BackForwardCacheNotUsed) -> Self
Converts to this type from the input type.
Source§impl From<CompilationCacheProduced> for PageEvents
impl From<CompilationCacheProduced> for PageEvents
Source§fn from(v: CompilationCacheProduced) -> Self
fn from(v: CompilationCacheProduced) -> Self
Converts to this type from the input type.
Source§impl From<DocumentOpened> for PageEvents
impl From<DocumentOpened> for PageEvents
Source§fn from(v: DocumentOpened) -> Self
fn from(v: DocumentOpened) -> Self
Converts to this type from the input type.
Source§impl From<DomContentEventFired> for PageEvents
impl From<DomContentEventFired> for PageEvents
Source§fn from(v: DomContentEventFired) -> Self
fn from(v: DomContentEventFired) -> Self
Converts to this type from the input type.
Source§impl From<FileChooserOpened> for PageEvents
impl From<FileChooserOpened> for PageEvents
Source§fn from(v: FileChooserOpened) -> Self
fn from(v: FileChooserOpened) -> Self
Converts to this type from the input type.
Source§impl From<FrameAttached> for PageEvents
impl From<FrameAttached> for PageEvents
Source§fn from(v: FrameAttached) -> Self
fn from(v: FrameAttached) -> Self
Converts to this type from the input type.
Source§impl From<FrameDetached> for PageEvents
impl From<FrameDetached> for PageEvents
Source§fn from(v: FrameDetached) -> Self
fn from(v: FrameDetached) -> Self
Converts to this type from the input type.
Source§fn from(v: FrameNavigated) -> Self
fn from(v: FrameNavigated) -> Self
Converts to this type from the input type.
Source§fn from(v: FrameRequestedNavigation) -> Self
fn from(v: FrameRequestedNavigation) -> Self
Converts to this type from the input type.
Source§impl From<FrameResized> for PageEvents
impl From<FrameResized> for PageEvents
Source§fn from(v: FrameResized) -> Self
fn from(v: FrameResized) -> Self
Converts to this type from the input type.
Source§impl From<FrameStartedLoading> for PageEvents
impl From<FrameStartedLoading> for PageEvents
Source§fn from(v: FrameStartedLoading) -> Self
fn from(v: FrameStartedLoading) -> Self
Converts to this type from the input type.
Source§fn from(v: FrameStartedNavigating) -> Self
fn from(v: FrameStartedNavigating) -> Self
Converts to this type from the input type.
Source§impl From<FrameStoppedLoading> for PageEvents
impl From<FrameStoppedLoading> for PageEvents
Source§fn from(v: FrameStoppedLoading) -> Self
fn from(v: FrameStoppedLoading) -> Self
Converts to this type from the input type.
Source§impl From<FrameSubtreeWillBeDetached> for PageEvents
impl From<FrameSubtreeWillBeDetached> for PageEvents
Source§fn from(v: FrameSubtreeWillBeDetached) -> Self
fn from(v: FrameSubtreeWillBeDetached) -> Self
Converts to this type from the input type.
Source§impl From<InterstitialHidden> for PageEvents
impl From<InterstitialHidden> for PageEvents
Source§fn from(v: InterstitialHidden) -> Self
fn from(v: InterstitialHidden) -> Self
Converts to this type from the input type.
Source§impl From<InterstitialShown> for PageEvents
impl From<InterstitialShown> for PageEvents
Source§fn from(v: InterstitialShown) -> Self
fn from(v: InterstitialShown) -> Self
Converts to this type from the input type.
Source§impl From<JavascriptDialogClosed> for PageEvents
impl From<JavascriptDialogClosed> for PageEvents
Source§fn from(v: JavascriptDialogClosed) -> Self
fn from(v: JavascriptDialogClosed) -> Self
Converts to this type from the input type.
Source§impl From<JavascriptDialogOpening> for PageEvents
impl From<JavascriptDialogOpening> for PageEvents
Source§fn from(v: JavascriptDialogOpening) -> Self
fn from(v: JavascriptDialogOpening) -> Self
Converts to this type from the input type.
Source§impl From<LifecycleEvent> for PageEvents
impl From<LifecycleEvent> for PageEvents
Source§fn from(v: LifecycleEvent) -> Self
fn from(v: LifecycleEvent) -> Self
Converts to this type from the input type.
Source§impl From<LoadEventFired> for PageEvents
impl From<LoadEventFired> for PageEvents
Source§fn from(v: LoadEventFired) -> Self
fn from(v: LoadEventFired) -> Self
Converts to this type from the input type.
Source§fn from(v: NavigatedWithinDocument) -> Self
fn from(v: NavigatedWithinDocument) -> Self
Converts to this type from the input type.
Source§impl From<PageEvents> for BrowserProtocolEvents
impl From<PageEvents> for BrowserProtocolEvents
Source§fn from(v: PageEvents) -> Self
fn from(v: PageEvents) -> Self
Converts to this type from the input type.
Source§impl From<PageEvents> for Event
impl From<PageEvents> for Event
Source§fn from(v: PageEvents) -> Self
fn from(v: PageEvents) -> Self
Converts to this type from the input type.
Source§impl From<ScreencastFrame> for PageEvents
impl From<ScreencastFrame> for PageEvents
Source§fn from(v: ScreencastFrame) -> Self
fn from(v: ScreencastFrame) -> Self
Converts to this type from the input type.
Source§impl From<ScreencastVisibilityChanged> for PageEvents
impl From<ScreencastVisibilityChanged> for PageEvents
Source§fn from(v: ScreencastVisibilityChanged) -> Self
fn from(v: ScreencastVisibilityChanged) -> Self
Converts to this type from the input type.
Source§impl From<WindowOpen> for PageEvents
impl From<WindowOpen> for PageEvents
Source§fn from(v: WindowOpen) -> Self
fn from(v: WindowOpen) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PageEvents
impl PartialEq for PageEvents
Source§impl Serialize for PageEvents
impl Serialize for PageEvents
Source§impl TryFrom<BrowserProtocolEvents> for PageEvents
impl TryFrom<BrowserProtocolEvents> for PageEvents
Source§type Error = BrowserProtocolEvents
type Error = BrowserProtocolEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolEvents,
) -> Result<Self, <PageEvents as TryFrom<BrowserProtocolEvents>>::Error>
fn try_from( e: BrowserProtocolEvents, ) -> Result<Self, <PageEvents as TryFrom<BrowserProtocolEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for PageEvents
impl TryFrom<Event> for PageEvents
Source§impl TryFrom<PageEvents> for BackForwardCacheNotUsed
impl TryFrom<PageEvents> for BackForwardCacheNotUsed
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <BackForwardCacheNotUsed as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <BackForwardCacheNotUsed as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for CompilationCacheProduced
impl TryFrom<PageEvents> for CompilationCacheProduced
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <CompilationCacheProduced as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <CompilationCacheProduced as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for DocumentOpened
impl TryFrom<PageEvents> for DocumentOpened
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <DocumentOpened as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <DocumentOpened as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for DomContentEventFired
impl TryFrom<PageEvents> for DomContentEventFired
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <DomContentEventFired as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <DomContentEventFired as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FileChooserOpened
impl TryFrom<PageEvents> for FileChooserOpened
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FileChooserOpened as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FileChooserOpened as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FrameAttached
impl TryFrom<PageEvents> for FrameAttached
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameAttached as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameAttached as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FrameDetached
impl TryFrom<PageEvents> for FrameDetached
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameDetached as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameDetached as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameNavigated as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameNavigated as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameRequestedNavigation as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameRequestedNavigation as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FrameResized
impl TryFrom<PageEvents> for FrameResized
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameResized as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameResized as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FrameStartedLoading
impl TryFrom<PageEvents> for FrameStartedLoading
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameStartedLoading as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameStartedLoading as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameStartedNavigating as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameStartedNavigating as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FrameStoppedLoading
impl TryFrom<PageEvents> for FrameStoppedLoading
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameStoppedLoading as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameStoppedLoading as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for FrameSubtreeWillBeDetached
impl TryFrom<PageEvents> for FrameSubtreeWillBeDetached
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <FrameSubtreeWillBeDetached as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <FrameSubtreeWillBeDetached as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for InterstitialHidden
impl TryFrom<PageEvents> for InterstitialHidden
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <InterstitialHidden as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <InterstitialHidden as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for InterstitialShown
impl TryFrom<PageEvents> for InterstitialShown
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <InterstitialShown as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <InterstitialShown as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for JavascriptDialogClosed
impl TryFrom<PageEvents> for JavascriptDialogClosed
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <JavascriptDialogClosed as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <JavascriptDialogClosed as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for JavascriptDialogOpening
impl TryFrom<PageEvents> for JavascriptDialogOpening
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <JavascriptDialogOpening as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <JavascriptDialogOpening as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for LifecycleEvent
impl TryFrom<PageEvents> for LifecycleEvent
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <LifecycleEvent as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <LifecycleEvent as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for LoadEventFired
impl TryFrom<PageEvents> for LoadEventFired
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <LoadEventFired as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <LoadEventFired as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <NavigatedWithinDocument as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <NavigatedWithinDocument as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for ScreencastFrame
impl TryFrom<PageEvents> for ScreencastFrame
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <ScreencastFrame as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <ScreencastFrame as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for ScreencastVisibilityChanged
impl TryFrom<PageEvents> for ScreencastVisibilityChanged
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <ScreencastVisibilityChanged as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <ScreencastVisibilityChanged as TryFrom<PageEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PageEvents> for WindowOpen
impl TryFrom<PageEvents> for WindowOpen
Source§type Error = PageEvents
type Error = PageEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageEvents,
) -> Result<Self, <WindowOpen as TryFrom<PageEvents>>::Error>
fn try_from( e: PageEvents, ) -> Result<Self, <WindowOpen as TryFrom<PageEvents>>::Error>
Performs the conversion.
impl StructuralPartialEq for PageEvents
Auto Trait Implementations§
impl Freeze for PageEvents
impl RefUnwindSafe for PageEvents
impl Send for PageEvents
impl Sync for PageEvents
impl Unpin for PageEvents
impl UnsafeUnpin for PageEvents
impl UnwindSafe for PageEvents
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