Struct chrome_remote_interface_model::target::CreateTargetCommandBuilder[][src]

pub struct CreateTargetCommandBuilder { /* fields omitted */ }
This is supported on crate feature Target only.

Implementations

impl CreateTargetCommandBuilder[src]

pub fn url(&mut self, v: String) -> &mut Self[src]

The initial URL the page will be navigated to.

pub fn width(&mut self, v: u32) -> &mut Self[src]

Frame width in DIP (headless chrome only).

pub fn height(&mut self, v: u32) -> &mut Self[src]

Frame height in DIP (headless chrome only).

pub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self[src]

The browser context to create the page in.

pub fn enable_begin_frame_control(&mut self, v: bool) -> &mut Self[src]

This is supported on crate feature experimental only.

Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).

pub fn new_window(&mut self, v: bool) -> &mut Self[src]

Whether to create a new Window or Tab (chrome-only, false by default).

pub fn background(&mut self, v: bool) -> &mut Self[src]

Whether to create the target in background or foreground (chrome-only, false by default).

pub fn build(&mut self) -> Result<CreateTargetCommand, &'static str>[src]

Trait Implementations

impl Clone for CreateTargetCommandBuilder[src]

impl Debug for CreateTargetCommandBuilder[src]

impl Default for CreateTargetCommandBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.