pub struct FrameTreeNode {
pub id: FrameId,
pub url: String,
pub parent: Option<FrameId>,
pub depth: usize,
}Expand description
One node of the live browsing-context tree as reported by WebDriver
BiDi browsingContext.getTree.
Unlike Page::frames, a flat id list with no structure, this
preserves true parent linkage and the committed URL of every frame,
including cross-origin iframes whose URL parent-page JS could never
read (it would throw SecurityError). It is the structural source of
truth for crate::frame_graph::FrameGraph.
Fields§
§id: FrameIdBrowsing-context id, usable directly as a frame target for
Page::eval_in_frame / Page::click_in_frame.
url: StringCommitted document URL as the browser process sees it.
parent: Option<FrameId>Parent browsing-context id; None for a top-level (tab) context.
depth: usizeDepth within the tree: a top-level context is 0, its direct
iframes 1, and so on.
Trait Implementations§
Source§impl Clone for FrameTreeNode
impl Clone for FrameTreeNode
Source§fn clone(&self) -> FrameTreeNode
fn clone(&self) -> FrameTreeNode
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 moreSource§impl Debug for FrameTreeNode
impl Debug for FrameTreeNode
Source§impl PartialEq for FrameTreeNode
impl PartialEq for FrameTreeNode
impl StructuralPartialEq for FrameTreeNode
Auto Trait Implementations§
impl Freeze for FrameTreeNode
impl RefUnwindSafe for FrameTreeNode
impl Send for FrameTreeNode
impl Sync for FrameTreeNode
impl Unpin for FrameTreeNode
impl UnsafeUnpin for FrameTreeNode
impl UnwindSafe for FrameTreeNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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