pub struct SetDisplayFeaturesOverride {
pub method: SetDisplayFeaturesOverrideMethod,
pub params: SetDisplayFeaturesOverrideParams,
}Expand description
Start using the given display features to pupulate the Viewport Segments API. This override can also be set in setDeviceMetricsOverride(). setDisplayFeaturesOverride
Fields§
§method: SetDisplayFeaturesOverrideMethod§params: SetDisplayFeaturesOverrideParamsImplementations§
Source§impl SetDisplayFeaturesOverride
impl SetDisplayFeaturesOverride
pub const IDENTIFIER: &'static str = "Emulation.setDisplayFeaturesOverride"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetDisplayFeaturesOverride
impl Clone for SetDisplayFeaturesOverride
Source§fn clone(&self) -> SetDisplayFeaturesOverride
fn clone(&self) -> SetDisplayFeaturesOverride
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 SetDisplayFeaturesOverride
impl CommandResult for SetDisplayFeaturesOverride
type Result = SetDisplayFeaturesOverrideResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetDisplayFeaturesOverride
impl Debug for SetDisplayFeaturesOverride
Source§impl<'de> Deserialize<'de> for SetDisplayFeaturesOverride
impl<'de> Deserialize<'de> for SetDisplayFeaturesOverride
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<SetDisplayFeaturesOverride> for BrowserProtocolCommands
impl From<SetDisplayFeaturesOverride> for BrowserProtocolCommands
Source§fn from(v: SetDisplayFeaturesOverride) -> Self
fn from(v: SetDisplayFeaturesOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDisplayFeaturesOverride> for Command
impl From<SetDisplayFeaturesOverride> for Command
Source§fn from(v: SetDisplayFeaturesOverride) -> Self
fn from(v: SetDisplayFeaturesOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDisplayFeaturesOverride> for EmulationCommands
impl From<SetDisplayFeaturesOverride> for EmulationCommands
Source§fn from(v: SetDisplayFeaturesOverride) -> Self
fn from(v: SetDisplayFeaturesOverride) -> Self
Converts to this type from the input type.
Source§impl TryFrom<BrowserProtocolCommands> for SetDisplayFeaturesOverride
impl TryFrom<BrowserProtocolCommands> for SetDisplayFeaturesOverride
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, <SetDisplayFeaturesOverride as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetDisplayFeaturesOverride as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetDisplayFeaturesOverride
impl TryFrom<Command> for SetDisplayFeaturesOverride
Source§impl TryFrom<EmulationCommands> for SetDisplayFeaturesOverride
impl TryFrom<EmulationCommands> for SetDisplayFeaturesOverride
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, <SetDisplayFeaturesOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDisplayFeaturesOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetDisplayFeaturesOverride
Auto Trait Implementations§
impl Freeze for SetDisplayFeaturesOverride
impl RefUnwindSafe for SetDisplayFeaturesOverride
impl Send for SetDisplayFeaturesOverride
impl Sync for SetDisplayFeaturesOverride
impl Unpin for SetDisplayFeaturesOverride
impl UnsafeUnpin for SetDisplayFeaturesOverride
impl UnwindSafe for SetDisplayFeaturesOverride
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