pub struct FrameNode {
pub frame_id: Option<String>,
pub parent: Option<usize>,
pub url: String,
pub title: String,
pub has_captcha_marker: bool,
pub depth: usize,
}Expand description
One node in the frame graph.
frame_id is the CDP frame identifier, opaque string we hand
back to page.frame_execution_context(frame_id) when running
JS in this frame’s context.
Fields§
§frame_id: Option<String>CDP frame ID. None for the synthetic root that ties the
main frame plus all shadow roots together; nodes representing
real frames always carry one.
parent: Option<usize>Index of the parent node in FrameGraph::nodes. None
only for the root.
url: StringURL of the document this frame is rendering. about:blank
or about:srcdoc for synthetic / written iframes.
title: Stringdocument.title at snapshot time.
has_captcha_marker: boolTrue when the frame’s body or any descendant matched a captcha-shaped selector at snapshot time. Drives reasoning like “BFS to the nearest captcha-bearing frame”.
depth: usizeDepth from the root (root = 0, top-level frame = 1, …).
Trait Implementations§
impl Eq for FrameNode
impl StructuralPartialEq for FrameNode
Auto Trait Implementations§
impl Freeze for FrameNode
impl RefUnwindSafe for FrameNode
impl Send for FrameNode
impl Sync for FrameNode
impl Unpin for FrameNode
impl UnsafeUnpin for FrameNode
impl UnwindSafe for FrameNode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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