pub struct ClearDisplayFeaturesOverride {
pub method: ClearDisplayFeaturesOverrideMethod,
pub params: ClearDisplayFeaturesOverrideParams,
}Expand description
Clears the display features override set with either setDeviceMetricsOverride() or setDisplayFeaturesOverride() and starts using display features from the platform again. Does nothing if no override is set. clearDisplayFeaturesOverride
Fields§
§method: ClearDisplayFeaturesOverrideMethod§params: ClearDisplayFeaturesOverrideParamsImplementations§
Source§impl ClearDisplayFeaturesOverride
impl ClearDisplayFeaturesOverride
pub fn builder() -> ClearDisplayFeaturesOverrideBuilder
Source§impl ClearDisplayFeaturesOverride
impl ClearDisplayFeaturesOverride
pub const IDENTIFIER: &'static str = "Emulation.clearDisplayFeaturesOverride"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ClearDisplayFeaturesOverride
impl Clone for ClearDisplayFeaturesOverride
Source§fn clone(&self) -> ClearDisplayFeaturesOverride
fn clone(&self) -> ClearDisplayFeaturesOverride
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 CommandResult for ClearDisplayFeaturesOverride
impl CommandResult for ClearDisplayFeaturesOverride
type Result = ClearDisplayFeaturesOverrideResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for ClearDisplayFeaturesOverride
impl Debug for ClearDisplayFeaturesOverride
Source§impl<'de> Deserialize<'de> for ClearDisplayFeaturesOverride
impl<'de> Deserialize<'de> for ClearDisplayFeaturesOverride
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 From<ClearDisplayFeaturesOverride> for BrowserProtocolCommands
impl From<ClearDisplayFeaturesOverride> for BrowserProtocolCommands
Source§fn from(v: ClearDisplayFeaturesOverride) -> Self
fn from(v: ClearDisplayFeaturesOverride) -> Self
Converts to this type from the input type.
Source§impl From<ClearDisplayFeaturesOverride> for Command
impl From<ClearDisplayFeaturesOverride> for Command
Source§fn from(v: ClearDisplayFeaturesOverride) -> Self
fn from(v: ClearDisplayFeaturesOverride) -> Self
Converts to this type from the input type.
Source§impl From<ClearDisplayFeaturesOverride> for EmulationCommands
impl From<ClearDisplayFeaturesOverride> for EmulationCommands
Source§fn from(v: ClearDisplayFeaturesOverride) -> Self
fn from(v: ClearDisplayFeaturesOverride) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClearDisplayFeaturesOverride
impl PartialEq for ClearDisplayFeaturesOverride
Source§fn eq(&self, other: &ClearDisplayFeaturesOverride) -> bool
fn eq(&self, other: &ClearDisplayFeaturesOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for ClearDisplayFeaturesOverride
impl TryFrom<BrowserProtocolCommands> for ClearDisplayFeaturesOverride
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <ClearDisplayFeaturesOverride as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <ClearDisplayFeaturesOverride as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for ClearDisplayFeaturesOverride
impl TryFrom<EmulationCommands> for ClearDisplayFeaturesOverride
Source§type Error = EmulationCommands
type Error = EmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommands,
) -> Result<Self, <ClearDisplayFeaturesOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <ClearDisplayFeaturesOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for ClearDisplayFeaturesOverride
Auto Trait Implementations§
impl Freeze for ClearDisplayFeaturesOverride
impl RefUnwindSafe for ClearDisplayFeaturesOverride
impl Send for ClearDisplayFeaturesOverride
impl Sync for ClearDisplayFeaturesOverride
impl Unpin for ClearDisplayFeaturesOverride
impl UnsafeUnpin for ClearDisplayFeaturesOverride
impl UnwindSafe for ClearDisplayFeaturesOverride
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