pub struct CreateTargetCommandBuilder { /* private fields */ }Available on crate feature
Target only.Implementations§
Source§impl CreateTargetCommandBuilder
impl CreateTargetCommandBuilder
Sourcepub fn url(&mut self, v: String) -> &mut Self
pub fn url(&mut self, v: String) -> &mut Self
The initial URL the page will be navigated to. An empty string indicates about:blank.
Sourcepub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
pub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
The browser context to create the page in.
Sourcepub fn enable_begin_frame_control(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn enable_begin_frame_control(&mut self, v: bool) -> &mut Self
experimental only.Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).
Sourcepub fn new_window(&mut self, v: bool) -> &mut Self
pub fn new_window(&mut self, v: bool) -> &mut Self
Whether to create a new Window or Tab (chrome-only, false by default).
Sourcepub fn background(&mut self, v: bool) -> &mut Self
pub fn background(&mut self, v: bool) -> &mut Self
Whether to create the target in background or foreground (chrome-only, false by default).
pub fn build(&mut self) -> Result<CreateTargetCommand, &'static str>
Trait Implementations§
Source§impl Clone for CreateTargetCommandBuilder
impl Clone for CreateTargetCommandBuilder
Source§fn clone(&self) -> CreateTargetCommandBuilder
fn clone(&self) -> CreateTargetCommandBuilder
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 CreateTargetCommandBuilder
impl Debug for CreateTargetCommandBuilder
Auto Trait Implementations§
impl Freeze for CreateTargetCommandBuilder
impl RefUnwindSafe for CreateTargetCommandBuilder
impl Send for CreateTargetCommandBuilder
impl Sync for CreateTargetCommandBuilder
impl Unpin for CreateTargetCommandBuilder
impl UnwindSafe for CreateTargetCommandBuilder
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