pub struct Frame { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Expand description
Information about the Frame on the page.
Implementations§
Source§impl Frame
impl Frame
pub fn builder() -> FrameBuilder
Sourcepub fn url_fragment(&self) -> Option<&String>
Available on crate feature experimental only.
pub fn url_fragment(&self) -> Option<&String>
experimental only.Frame document’s URL fragment including the ‘#’.
Sourcepub fn domain_and_registry(&self) -> &str
Available on crate feature experimental only.
pub fn domain_and_registry(&self) -> &str
experimental only.Frame document’s registered domain, taking the public suffixes list into account. Extracted from the Frame’s url. Example URLs: http://www.google.com/file.html -> “google.com” http://a.b.co.uk/file.html -> “b.co.uk”
Sourcepub fn security_origin(&self) -> &str
pub fn security_origin(&self) -> &str
Frame document’s security origin.
Sourcepub fn unreachable_url(&self) -> Option<&String>
Available on crate feature experimental only.
pub fn unreachable_url(&self) -> Option<&String>
experimental only.If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
Sourcepub fn ad_frame_type(&self) -> Option<&JsonValue>
Available on crate feature experimental only.
pub fn ad_frame_type(&self) -> Option<&JsonValue>
experimental only.Indicates whether this frame was tagged as an ad.
Sourcepub fn secure_context_type(&self) -> &JsonValue
Available on crate feature experimental only.
pub fn secure_context_type(&self) -> &JsonValue
experimental only.Indicates whether the main document is a secure context and explains why that is the case.
Sourcepub fn cross_origin_isolated_context_type(&self) -> &JsonValue
Available on crate feature experimental only.
pub fn cross_origin_isolated_context_type(&self) -> &JsonValue
experimental only.Indicates whether this is a cross origin isolated context.
Sourcepub fn gated_api_features(&self) -> &[JsonValue]
Available on crate feature experimental only.
pub fn gated_api_features(&self) -> &[JsonValue]
experimental only.Indicated which gated APIs / features are available.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
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
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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