pub struct TargetInfoBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TargetInfoBuilder<'a>
impl<'a> TargetInfoBuilder<'a>
Sourcepub fn openerFrameId(self, openerFrameId: FrameId<'a>) -> Self
pub fn openerFrameId(self, openerFrameId: FrameId<'a>) -> Self
Frame id of originating window (is only set if target has an opener).
Sourcepub fn parentFrameId(self, parentFrameId: FrameId<'a>) -> Self
pub fn parentFrameId(self, parentFrameId: 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 browserContextId(self, browserContextId: 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