pub struct FrameBuilder { /* private fields */ }Page and Debugger and DOM and IO and Network and Runtime only.Implementations§
Source§impl FrameBuilder
impl FrameBuilder
Sourcepub fn loader_id(&mut self, v: LoaderId) -> &mut Self
pub fn loader_id(&mut self, v: LoaderId) -> &mut Self
Identifier of the loader associated with this frame.
Sourcepub fn url_fragment(&mut self, v: String) -> &mut Self
Available on crate feature experimental only.
pub fn url_fragment(&mut self, v: String) -> &mut Self
experimental only.Frame document’s URL fragment including the ‘#’.
Sourcepub fn domain_and_registry(&mut self, v: String) -> &mut Self
Available on crate feature experimental only.
pub fn domain_and_registry(&mut self, v: String) -> &mut Self
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(&mut self, v: String) -> &mut Self
pub fn security_origin(&mut self, v: String) -> &mut Self
Frame document’s security origin.
Sourcepub fn mime_type(&mut self, v: String) -> &mut Self
pub fn mime_type(&mut self, v: String) -> &mut Self
Frame document’s mimeType as determined by the browser.
Sourcepub fn unreachable_url(&mut self, v: String) -> &mut Self
Available on crate feature experimental only.
pub fn unreachable_url(&mut self, v: String) -> &mut Self
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(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn ad_frame_type(&mut self, v: JsonValue) -> &mut Self
experimental only.Indicates whether this frame was tagged as an ad.
Sourcepub fn secure_context_type(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn secure_context_type(&mut self, v: JsonValue) -> &mut Self
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(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn cross_origin_isolated_context_type(&mut self, v: JsonValue) -> &mut Self
experimental only.Indicates whether this is a cross origin isolated context.
Sourcepub fn gated_api_features(&mut self, v: Vec<JsonValue>) -> &mut Self
Available on crate feature experimental only.
pub fn gated_api_features(&mut self, v: Vec<JsonValue>) -> &mut Self
experimental only.Indicated which gated APIs / features are available.
pub fn build(&mut self) -> Result<Frame, &'static str>
Trait Implementations§
Source§impl Clone for FrameBuilder
impl Clone for FrameBuilder
Source§fn clone(&self) -> FrameBuilder
fn clone(&self) -> FrameBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more