pub struct DocumentOpenedEvent { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime and experimental only.Expand description
Fired when opening document to write to.
Implementations§
Methods from Deref<Target = Frame>§
Sourcepub fn url_fragment(&self) -> Option<&String>
pub fn url_fragment(&self) -> Option<&String>
Frame document’s URL fragment including the ‘#’.
Sourcepub fn domain_and_registry(&self) -> &str
pub fn domain_and_registry(&self) -> &str
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>
pub fn unreachable_url(&self) -> Option<&String>
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>
pub fn ad_frame_type(&self) -> Option<&JsonValue>
Indicates whether this frame was tagged as an ad.
Sourcepub fn secure_context_type(&self) -> &JsonValue
pub fn secure_context_type(&self) -> &JsonValue
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
pub fn cross_origin_isolated_context_type(&self) -> &JsonValue
Indicates whether this is a cross origin isolated context.
Sourcepub fn gated_api_features(&self) -> &[JsonValue]
pub fn gated_api_features(&self) -> &[JsonValue]
Indicated which gated APIs / features are available.
Trait Implementations§
Source§impl Clone for DocumentOpenedEvent
impl Clone for DocumentOpenedEvent
Source§fn clone(&self) -> DocumentOpenedEvent
fn clone(&self) -> DocumentOpenedEvent
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 DocumentOpenedEvent
impl Debug for DocumentOpenedEvent
Source§impl Deref for DocumentOpenedEvent
impl Deref for DocumentOpenedEvent
Source§impl<'de> Deserialize<'de> for DocumentOpenedEvent
impl<'de> Deserialize<'de> for DocumentOpenedEvent
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 DocumentOpenedEvent
impl RefUnwindSafe for DocumentOpenedEvent
impl Send for DocumentOpenedEvent
impl Sync for DocumentOpenedEvent
impl Unpin for DocumentOpenedEvent
impl UnwindSafe for DocumentOpenedEvent
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