pub struct TargetInfoBuilder { /* private fields */ }Expand description
Builder for TargetInfo.
Implementations§
Source§impl TargetInfoBuilder
impl TargetInfoBuilder
pub fn target_id<VALUE: Into<TargetId>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn attached<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn attached<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether the target has an attached client.
Sourcepub fn can_access_opener<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn can_access_opener<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether the target has access to the originating window.
Sourcepub fn opener_frame_id<VALUE: Into<FrameId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn opener_frame_id<VALUE: Into<FrameId>>( &mut self, value: VALUE, ) -> &mut Self
Frame id of originating window (is only set if target has an opener).
Sourcepub fn parent_frame_id<VALUE: Into<FrameId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn parent_frame_id<VALUE: Into<FrameId>>( &mut self, value: VALUE, ) -> &mut Self
Id of the parent frame, only present for the “iframe” targets.
pub fn browser_context_id<VALUE: Into<BrowserContextId>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn subtype<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn subtype<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Provides additional details for specific target types. For example, for the type of “page”, this may be set to “prerender”.
Sourcepub fn build(&self) -> Result<TargetInfo, TargetInfoBuilderError>
pub fn build(&self) -> Result<TargetInfo, TargetInfoBuilderError>
Trait Implementations§
Source§impl Clone for TargetInfoBuilder
impl Clone for TargetInfoBuilder
Source§fn clone(&self) -> TargetInfoBuilder
fn clone(&self) -> TargetInfoBuilder
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 moreAuto Trait Implementations§
impl Freeze for TargetInfoBuilder
impl RefUnwindSafe for TargetInfoBuilder
impl Send for TargetInfoBuilder
impl Sync for TargetInfoBuilder
impl Unpin for TargetInfoBuilder
impl UnsafeUnpin for TargetInfoBuilder
impl UnwindSafe for TargetInfoBuilder
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