Struct chrome_remote_interface_model::emulation::SetDeviceMetricsOverrideCommandBuilder[][src]

pub struct SetDeviceMetricsOverrideCommandBuilder { /* fields omitted */ }
This is supported on crate features Emulation and DOM and Page and Runtime only.

Implementations

impl SetDeviceMetricsOverrideCommandBuilder[src]

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

Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.

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

Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.

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

Overriding device scale factor value. 0 disables the override.

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

Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.

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

This is supported on crate feature experimental only.

Scale to apply to resulting view image.

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

This is supported on crate feature experimental only.

Overriding screen width value in pixels (minimum 0, maximum 10000000).

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

This is supported on crate feature experimental only.

Overriding screen height value in pixels (minimum 0, maximum 10000000).

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

This is supported on crate feature experimental only.

Overriding view X position on screen in pixels (minimum 0, maximum 10000000).

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

This is supported on crate feature experimental only.

Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).

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

This is supported on crate feature experimental only.

Do not set visible view size, rely upon explicit setVisibleSize call.

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

Screen orientation override.

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

This is supported on crate feature experimental only.

If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.

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

This is supported on crate feature experimental only.

If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.

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

Trait Implementations

impl Clone for SetDeviceMetricsOverrideCommandBuilder[src]

impl Debug for SetDeviceMetricsOverrideCommandBuilder[src]

impl Default for SetDeviceMetricsOverrideCommandBuilder[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.