pub struct LifecycleEvent {
pub method: LifecycleEventMethod,
pub params: LifecycleEventParams,
}Expand description
Fired for lifecycle events (navigation, load, paint, etc) in the current target (including local frames). lifecycleEvent
Fields§
§method: LifecycleEventMethod§params: LifecycleEventParamsImplementations§
Source§impl LifecycleEvent
impl LifecycleEvent
pub const IDENTIFIER: &'static str = "Page.lifecycleEvent"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for LifecycleEvent
impl Clone for LifecycleEvent
Source§fn clone(&self) -> LifecycleEvent
fn clone(&self) -> LifecycleEvent
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 LifecycleEvent
impl Debug for LifecycleEvent
Source§impl<'de> Deserialize<'de> for LifecycleEvent
impl<'de> Deserialize<'de> for LifecycleEvent
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<LifecycleEvent> for BrowserProtocolEvents
impl From<LifecycleEvent> for BrowserProtocolEvents
Source§fn from(v: LifecycleEvent) -> Self
fn from(v: LifecycleEvent) -> Self
Converts to this type from the input type.
Source§impl From<LifecycleEvent> for Event
impl From<LifecycleEvent> for Event
Source§fn from(v: LifecycleEvent) -> Self
fn from(v: LifecycleEvent) -> 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 PartialEq for LifecycleEvent
impl PartialEq for LifecycleEvent
Source§impl Serialize for LifecycleEvent
impl Serialize for LifecycleEvent
Source§impl TryFrom<BrowserProtocolEvents> for LifecycleEvent
impl TryFrom<BrowserProtocolEvents> for LifecycleEvent
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, <LifecycleEvent as TryFrom<BrowserProtocolEvents>>::Error>
fn try_from( e: BrowserProtocolEvents, ) -> Result<Self, <LifecycleEvent as TryFrom<BrowserProtocolEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for LifecycleEvent
impl TryFrom<Event> for LifecycleEvent
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.
impl StructuralPartialEq for LifecycleEvent
Auto Trait Implementations§
impl Freeze for LifecycleEvent
impl RefUnwindSafe for LifecycleEvent
impl Send for LifecycleEvent
impl Sync for LifecycleEvent
impl Unpin for LifecycleEvent
impl UnsafeUnpin for LifecycleEvent
impl UnwindSafe for LifecycleEvent
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