pub struct UpdateScreenParams<'a> { /* private fields */ }Expand description
Updates specified screen parameters. Only supported in headless mode.
Implementations§
Source§impl<'a> UpdateScreenParams<'a>
impl<'a> UpdateScreenParams<'a>
Sourcepub fn builder(
screen_id: impl Into<ScreenId<'a>>,
) -> UpdateScreenParamsBuilder<'a>
pub fn builder( screen_id: impl Into<ScreenId<'a>>, ) -> UpdateScreenParamsBuilder<'a>
Creates a builder for this type with the required parameters:
screen_id: Target screen identifier.
Sourcepub fn work_area_insets(&self) -> Option<&WorkAreaInsets>
pub fn work_area_insets(&self) -> Option<&WorkAreaInsets>
Specifies the screen’s work area.
Sourcepub fn device_pixel_ratio(&self) -> Option<f64>
pub fn device_pixel_ratio(&self) -> Option<f64>
Specifies the screen’s device pixel ratio.
Sourcepub fn rotation(&self) -> Option<i64>
pub fn rotation(&self) -> Option<i64>
Specifies the screen’s rotation angle. Available values are 0, 90, 180 and 270.
Sourcepub fn color_depth(&self) -> Option<i64>
pub fn color_depth(&self) -> Option<i64>
Specifies the screen’s color depth in bits.
Sourcepub fn is_internal(&self) -> Option<bool>
pub fn is_internal(&self) -> Option<bool>
Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for UpdateScreenParams<'a>
impl<'a> CdpCommand<'a> for UpdateScreenParams<'a>
Source§impl<'a> Clone for UpdateScreenParams<'a>
impl<'a> Clone for UpdateScreenParams<'a>
Source§fn clone(&self) -> UpdateScreenParams<'a>
fn clone(&self) -> UpdateScreenParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UpdateScreenParams<'a>
impl<'a> Debug for UpdateScreenParams<'a>
Source§impl<'a> Default for UpdateScreenParams<'a>
impl<'a> Default for UpdateScreenParams<'a>
Source§fn default() -> UpdateScreenParams<'a>
fn default() -> UpdateScreenParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for UpdateScreenParams<'a>
impl<'de, 'a> Deserialize<'de> for UpdateScreenParams<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for UpdateScreenParams<'a>
impl<'a> RefUnwindSafe for UpdateScreenParams<'a>
impl<'a> Send for UpdateScreenParams<'a>
impl<'a> Sync for UpdateScreenParams<'a>
impl<'a> Unpin for UpdateScreenParams<'a>
impl<'a> UnsafeUnpin for UpdateScreenParams<'a>
impl<'a> UnwindSafe for UpdateScreenParams<'a>
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