pub struct FrameEvent {
pub id: String,
pub parent_id: Option<String>,
pub url: String,
}Expand description
A frame lifecycle event payload for on_frameattached /
on_framedetached / on_framenavigated. Carries the frame id, its
parent’s id (if any), and — for navigations — the frame’s new URL.
Fields§
§id: StringThe id of the frame the event concerns.
parent_id: Option<String>The parent frame id, if the frame has one (the main frame does not).
url: StringThe frame’s URL. Populated for navigations; empty for attach/detach.
Trait Implementations§
Source§impl Clone for FrameEvent
impl Clone for FrameEvent
Source§fn clone(&self) -> FrameEvent
fn clone(&self) -> FrameEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FrameEvent
impl RefUnwindSafe for FrameEvent
impl Send for FrameEvent
impl Sync for FrameEvent
impl Unpin for FrameEvent
impl UnsafeUnpin for FrameEvent
impl UnwindSafe for FrameEvent
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