pub struct TargetInfoBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TargetInfoBuilder<'a>
impl<'a> TargetInfoBuilder<'a>
Sourcepub fn parent_id(self, parent_id: impl Into<TargetID<'a>>) -> Self
pub fn parent_id(self, parent_id: impl Into<TargetID<'a>>) -> Self
Id of the parent target, if any. For example, “iframe” target may have a “page” parent.
Sourcepub fn opener_frame_id(self, opener_frame_id: FrameId<'a>) -> Self
pub fn opener_frame_id(self, opener_frame_id: FrameId<'a>) -> Self
Frame id of originating window (is only set if target has an opener).
Sourcepub fn parent_frame_id(self, parent_frame_id: FrameId<'a>) -> Self
pub fn parent_frame_id(self, parent_frame_id: FrameId<'a>) -> Self
Id of the parent frame, present for “iframe” and “worker” targets. For nested workers, this is the “ancestor” frame that created the first worker in the nested chain.
pub fn browser_context_id( self, browser_context_id: BrowserContextID<'a>, ) -> Self
Sourcepub fn subtype(self, subtype: impl Into<Cow<'a, str>>) -> Self
pub fn subtype(self, subtype: impl Into<Cow<'a, str>>) -> Self
Provides additional details for specific target types. For example, for the type of “page”, this may be set to “prerender”.
pub fn build(self) -> TargetInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for TargetInfoBuilder<'a>
impl<'a> RefUnwindSafe for TargetInfoBuilder<'a>
impl<'a> Send for TargetInfoBuilder<'a>
impl<'a> Sync for TargetInfoBuilder<'a>
impl<'a> Unpin for TargetInfoBuilder<'a>
impl<'a> UnsafeUnpin for TargetInfoBuilder<'a>
impl<'a> UnwindSafe for TargetInfoBuilder<'a>
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