pub struct UpdateScreenParams {
pub screen_id: ScreenId,
pub left: Option<i64>,
pub top: Option<i64>,
pub width: Option<i64>,
pub height: Option<i64>,
pub work_area_insets: Option<WorkAreaInsets>,
pub device_pixel_ratio: Option<f64>,
pub rotation: Option<i64>,
pub color_depth: Option<i64>,
pub label: Option<String>,
pub is_internal: Option<bool>,
}Expand description
Updates specified screen parameters. Only supported in headless mode.
Experimental: may change without notice.
Parameters of Emulation.updateScreen.
Fields§
§screen_id: ScreenIdTarget screen identifier.
left: Option<i64>Offset of the left edge of the screen in pixels.
top: Option<i64>Offset of the top edge of the screen in pixels.
width: Option<i64>The width of the screen in pixels.
height: Option<i64>The height of the screen in pixels.
work_area_insets: Option<WorkAreaInsets>Specifies the screen’s work area.
device_pixel_ratio: Option<f64>Specifies the screen’s device pixel ratio.
rotation: Option<i64>Specifies the screen’s rotation angle. Available values are 0, 90, 180 and 270.
color_depth: Option<i64>Specifies the screen’s color depth in bits.
label: Option<String>Specifies the descriptive label for the screen.
is_internal: Option<bool>Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
Trait Implementations§
Source§impl Clone for UpdateScreenParams
impl Clone for UpdateScreenParams
Source§impl Command for UpdateScreenParams
impl Command for UpdateScreenParams
Source§impl Debug for UpdateScreenParams
impl Debug for UpdateScreenParams
Source§impl Default for UpdateScreenParams
impl Default for UpdateScreenParams
Source§impl<'de> Deserialize<'de> for UpdateScreenParams
impl<'de> Deserialize<'de> for UpdateScreenParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateScreenParams
impl PartialEq for UpdateScreenParams
Source§impl Serialize for UpdateScreenParams
impl Serialize for UpdateScreenParams
impl StructuralPartialEq for UpdateScreenParams
Auto Trait Implementations§
impl Forget for UpdateScreenParams
impl Freeze for UpdateScreenParams
impl RefUnwindSafe for UpdateScreenParams
impl Send for UpdateScreenParams
impl Sync for UpdateScreenParams
impl Unpin for UpdateScreenParams
impl UnsafeUnpin for UpdateScreenParams
impl UnwindSafe for UpdateScreenParams
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