pub enum EmulationCommands {
Show 43 variants
ClearDeviceMetricsOverride(ClearDeviceMetricsOverride),
ClearGeolocationOverride(ClearGeolocationOverride),
ResetPageScaleFactor(ResetPageScaleFactor),
SetFocusEmulationEnabled(SetFocusEmulationEnabled),
SetAutoDarkModeOverride(SetAutoDarkModeOverride),
SetCpuThrottlingRate(SetCpuThrottlingRate),
SetDefaultBackgroundColorOverride(SetDefaultBackgroundColorOverride),
SetSafeAreaInsetsOverride(SetSafeAreaInsetsOverride),
SetDeviceMetricsOverride(SetDeviceMetricsOverride),
SetDevicePostureOverride(SetDevicePostureOverride),
ClearDevicePostureOverride(ClearDevicePostureOverride),
SetDisplayFeaturesOverride(SetDisplayFeaturesOverride),
ClearDisplayFeaturesOverride(ClearDisplayFeaturesOverride),
SetScrollbarsHidden(SetScrollbarsHidden),
SetDocumentCookieDisabled(SetDocumentCookieDisabled),
SetEmitTouchEventsForMouse(SetEmitTouchEventsForMouse),
SetEmulatedMedia(SetEmulatedMedia),
SetEmulatedVisionDeficiency(SetEmulatedVisionDeficiency),
SetEmulatedOsTextScale(SetEmulatedOsTextScale),
SetGeolocationOverride(SetGeolocationOverride),
GetOverriddenSensorInformation(GetOverriddenSensorInformation),
SetSensorOverrideEnabled(SetSensorOverrideEnabled),
SetSensorOverrideReadings(SetSensorOverrideReadings),
SetPressureSourceOverrideEnabled(SetPressureSourceOverrideEnabled),
SetPressureStateOverride(SetPressureStateOverride),
SetPressureDataOverride(SetPressureDataOverride),
SetIdleOverride(SetIdleOverride),
ClearIdleOverride(ClearIdleOverride),
SetPageScaleFactor(SetPageScaleFactor),
SetScriptExecutionDisabled(SetScriptExecutionDisabled),
SetTouchEmulationEnabled(SetTouchEmulationEnabled),
SetVirtualTimePolicy(SetVirtualTimePolicy),
SetLocaleOverride(SetLocaleOverride),
SetTimezoneOverride(SetTimezoneOverride),
SetDisabledImageTypes(SetDisabledImageTypes),
SetDataSaverOverride(SetDataSaverOverride),
SetHardwareConcurrencyOverride(SetHardwareConcurrencyOverride),
SetUserAgentOverride(SetUserAgentOverride),
SetAutomationOverride(SetAutomationOverride),
SetSmallViewportHeightDifferenceOverride(SetSmallViewportHeightDifferenceOverride),
GetScreenInfos(GetScreenInfos),
AddScreen(AddScreen),
RemoveScreen(RemoveScreen),
}Variants§
ClearDeviceMetricsOverride(ClearDeviceMetricsOverride)
ClearGeolocationOverride(ClearGeolocationOverride)
ResetPageScaleFactor(ResetPageScaleFactor)
SetFocusEmulationEnabled(SetFocusEmulationEnabled)
SetAutoDarkModeOverride(SetAutoDarkModeOverride)
SetCpuThrottlingRate(SetCpuThrottlingRate)
SetDefaultBackgroundColorOverride(SetDefaultBackgroundColorOverride)
SetSafeAreaInsetsOverride(SetSafeAreaInsetsOverride)
SetDeviceMetricsOverride(SetDeviceMetricsOverride)
SetDevicePostureOverride(SetDevicePostureOverride)
ClearDevicePostureOverride(ClearDevicePostureOverride)
SetDisplayFeaturesOverride(SetDisplayFeaturesOverride)
ClearDisplayFeaturesOverride(ClearDisplayFeaturesOverride)
SetScrollbarsHidden(SetScrollbarsHidden)
SetDocumentCookieDisabled(SetDocumentCookieDisabled)
SetEmitTouchEventsForMouse(SetEmitTouchEventsForMouse)
SetEmulatedMedia(SetEmulatedMedia)
SetEmulatedVisionDeficiency(SetEmulatedVisionDeficiency)
SetEmulatedOsTextScale(SetEmulatedOsTextScale)
SetGeolocationOverride(SetGeolocationOverride)
GetOverriddenSensorInformation(GetOverriddenSensorInformation)
SetSensorOverrideEnabled(SetSensorOverrideEnabled)
SetSensorOverrideReadings(SetSensorOverrideReadings)
SetPressureSourceOverrideEnabled(SetPressureSourceOverrideEnabled)
SetPressureStateOverride(SetPressureStateOverride)
SetPressureDataOverride(SetPressureDataOverride)
SetIdleOverride(SetIdleOverride)
ClearIdleOverride(ClearIdleOverride)
SetPageScaleFactor(SetPageScaleFactor)
SetScriptExecutionDisabled(SetScriptExecutionDisabled)
SetTouchEmulationEnabled(SetTouchEmulationEnabled)
SetVirtualTimePolicy(SetVirtualTimePolicy)
SetLocaleOverride(SetLocaleOverride)
SetTimezoneOverride(SetTimezoneOverride)
SetDisabledImageTypes(SetDisabledImageTypes)
SetDataSaverOverride(SetDataSaverOverride)
SetHardwareConcurrencyOverride(SetHardwareConcurrencyOverride)
SetUserAgentOverride(SetUserAgentOverride)
SetAutomationOverride(SetAutomationOverride)
SetSmallViewportHeightDifferenceOverride(SetSmallViewportHeightDifferenceOverride)
GetScreenInfos(GetScreenInfos)
AddScreen(AddScreen)
RemoveScreen(RemoveScreen)
Implementations§
Source§impl EmulationCommands
impl EmulationCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for EmulationCommands
impl Clone for EmulationCommands
Source§fn clone(&self) -> EmulationCommands
fn clone(&self) -> EmulationCommands
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 Debug for EmulationCommands
impl Debug for EmulationCommands
Source§impl<'de> Deserialize<'de> for EmulationCommands
impl<'de> Deserialize<'de> for EmulationCommands
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<AddScreen> for EmulationCommands
impl From<AddScreen> for EmulationCommands
Source§impl From<ClearDeviceMetricsOverride> for EmulationCommands
impl From<ClearDeviceMetricsOverride> for EmulationCommands
Source§fn from(v: ClearDeviceMetricsOverride) -> Self
fn from(v: ClearDeviceMetricsOverride) -> Self
Converts to this type from the input type.
Source§impl From<ClearDevicePostureOverride> for EmulationCommands
impl From<ClearDevicePostureOverride> for EmulationCommands
Source§fn from(v: ClearDevicePostureOverride) -> Self
fn from(v: ClearDevicePostureOverride) -> 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 From<ClearGeolocationOverride> for EmulationCommands
impl From<ClearGeolocationOverride> for EmulationCommands
Source§fn from(v: ClearGeolocationOverride) -> Self
fn from(v: ClearGeolocationOverride) -> Self
Converts to this type from the input type.
Source§impl From<ClearIdleOverride> for EmulationCommands
impl From<ClearIdleOverride> for EmulationCommands
Source§fn from(v: ClearIdleOverride) -> Self
fn from(v: ClearIdleOverride) -> Self
Converts to this type from the input type.
Source§impl From<EmulationCommands> for BrowserProtocolCommands
impl From<EmulationCommands> for BrowserProtocolCommands
Source§fn from(v: EmulationCommands) -> Self
fn from(v: EmulationCommands) -> Self
Converts to this type from the input type.
Source§impl From<EmulationCommands> for Command
impl From<EmulationCommands> for Command
Source§fn from(v: EmulationCommands) -> Self
fn from(v: EmulationCommands) -> Self
Converts to this type from the input type.
Source§impl From<GetOverriddenSensorInformation> for EmulationCommands
impl From<GetOverriddenSensorInformation> for EmulationCommands
Source§fn from(v: GetOverriddenSensorInformation) -> Self
fn from(v: GetOverriddenSensorInformation) -> Self
Converts to this type from the input type.
Source§impl From<GetScreenInfos> for EmulationCommands
impl From<GetScreenInfos> for EmulationCommands
Source§fn from(v: GetScreenInfos) -> Self
fn from(v: GetScreenInfos) -> Self
Converts to this type from the input type.
Source§impl From<RemoveScreen> for EmulationCommands
impl From<RemoveScreen> for EmulationCommands
Source§fn from(v: RemoveScreen) -> Self
fn from(v: RemoveScreen) -> Self
Converts to this type from the input type.
Source§impl From<ResetPageScaleFactor> for EmulationCommands
impl From<ResetPageScaleFactor> for EmulationCommands
Source§fn from(v: ResetPageScaleFactor) -> Self
fn from(v: ResetPageScaleFactor) -> Self
Converts to this type from the input type.
Source§impl From<SetAutoDarkModeOverride> for EmulationCommands
impl From<SetAutoDarkModeOverride> for EmulationCommands
Source§fn from(v: SetAutoDarkModeOverride) -> Self
fn from(v: SetAutoDarkModeOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetAutomationOverride> for EmulationCommands
impl From<SetAutomationOverride> for EmulationCommands
Source§fn from(v: SetAutomationOverride) -> Self
fn from(v: SetAutomationOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetCpuThrottlingRate> for EmulationCommands
impl From<SetCpuThrottlingRate> for EmulationCommands
Source§fn from(v: SetCpuThrottlingRate) -> Self
fn from(v: SetCpuThrottlingRate) -> Self
Converts to this type from the input type.
Source§impl From<SetDataSaverOverride> for EmulationCommands
impl From<SetDataSaverOverride> for EmulationCommands
Source§fn from(v: SetDataSaverOverride) -> Self
fn from(v: SetDataSaverOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDefaultBackgroundColorOverride> for EmulationCommands
impl From<SetDefaultBackgroundColorOverride> for EmulationCommands
Source§fn from(v: SetDefaultBackgroundColorOverride) -> Self
fn from(v: SetDefaultBackgroundColorOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDeviceMetricsOverride> for EmulationCommands
impl From<SetDeviceMetricsOverride> for EmulationCommands
Source§fn from(v: SetDeviceMetricsOverride) -> Self
fn from(v: SetDeviceMetricsOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDevicePostureOverride> for EmulationCommands
impl From<SetDevicePostureOverride> for EmulationCommands
Source§fn from(v: SetDevicePostureOverride) -> Self
fn from(v: SetDevicePostureOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDisabledImageTypes> for EmulationCommands
impl From<SetDisabledImageTypes> for EmulationCommands
Source§fn from(v: SetDisabledImageTypes) -> Self
fn from(v: SetDisabledImageTypes) -> 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 From<SetDocumentCookieDisabled> for EmulationCommands
impl From<SetDocumentCookieDisabled> for EmulationCommands
Source§fn from(v: SetDocumentCookieDisabled) -> Self
fn from(v: SetDocumentCookieDisabled) -> Self
Converts to this type from the input type.
Source§impl From<SetEmitTouchEventsForMouse> for EmulationCommands
impl From<SetEmitTouchEventsForMouse> for EmulationCommands
Source§fn from(v: SetEmitTouchEventsForMouse) -> Self
fn from(v: SetEmitTouchEventsForMouse) -> Self
Converts to this type from the input type.
Source§impl From<SetEmulatedMedia> for EmulationCommands
impl From<SetEmulatedMedia> for EmulationCommands
Source§fn from(v: SetEmulatedMedia) -> Self
fn from(v: SetEmulatedMedia) -> Self
Converts to this type from the input type.
Source§impl From<SetEmulatedOsTextScale> for EmulationCommands
impl From<SetEmulatedOsTextScale> for EmulationCommands
Source§fn from(v: SetEmulatedOsTextScale) -> Self
fn from(v: SetEmulatedOsTextScale) -> Self
Converts to this type from the input type.
Source§impl From<SetEmulatedVisionDeficiency> for EmulationCommands
impl From<SetEmulatedVisionDeficiency> for EmulationCommands
Source§fn from(v: SetEmulatedVisionDeficiency) -> Self
fn from(v: SetEmulatedVisionDeficiency) -> Self
Converts to this type from the input type.
Source§impl From<SetFocusEmulationEnabled> for EmulationCommands
impl From<SetFocusEmulationEnabled> for EmulationCommands
Source§fn from(v: SetFocusEmulationEnabled) -> Self
fn from(v: SetFocusEmulationEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetGeolocationOverride> for EmulationCommands
impl From<SetGeolocationOverride> for EmulationCommands
Source§fn from(v: SetGeolocationOverride) -> Self
fn from(v: SetGeolocationOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetHardwareConcurrencyOverride> for EmulationCommands
impl From<SetHardwareConcurrencyOverride> for EmulationCommands
Source§fn from(v: SetHardwareConcurrencyOverride) -> Self
fn from(v: SetHardwareConcurrencyOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetIdleOverride> for EmulationCommands
impl From<SetIdleOverride> for EmulationCommands
Source§fn from(v: SetIdleOverride) -> Self
fn from(v: SetIdleOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetLocaleOverride> for EmulationCommands
impl From<SetLocaleOverride> for EmulationCommands
Source§fn from(v: SetLocaleOverride) -> Self
fn from(v: SetLocaleOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetPageScaleFactor> for EmulationCommands
impl From<SetPageScaleFactor> for EmulationCommands
Source§fn from(v: SetPageScaleFactor) -> Self
fn from(v: SetPageScaleFactor) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureDataOverride> for EmulationCommands
impl From<SetPressureDataOverride> for EmulationCommands
Source§fn from(v: SetPressureDataOverride) -> Self
fn from(v: SetPressureDataOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureSourceOverrideEnabled> for EmulationCommands
impl From<SetPressureSourceOverrideEnabled> for EmulationCommands
Source§fn from(v: SetPressureSourceOverrideEnabled) -> Self
fn from(v: SetPressureSourceOverrideEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureStateOverride> for EmulationCommands
impl From<SetPressureStateOverride> for EmulationCommands
Source§fn from(v: SetPressureStateOverride) -> Self
fn from(v: SetPressureStateOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetSafeAreaInsetsOverride> for EmulationCommands
impl From<SetSafeAreaInsetsOverride> for EmulationCommands
Source§fn from(v: SetSafeAreaInsetsOverride) -> Self
fn from(v: SetSafeAreaInsetsOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetScriptExecutionDisabled> for EmulationCommands
impl From<SetScriptExecutionDisabled> for EmulationCommands
Source§fn from(v: SetScriptExecutionDisabled) -> Self
fn from(v: SetScriptExecutionDisabled) -> Self
Converts to this type from the input type.
Source§impl From<SetScrollbarsHidden> for EmulationCommands
impl From<SetScrollbarsHidden> for EmulationCommands
Source§fn from(v: SetScrollbarsHidden) -> Self
fn from(v: SetScrollbarsHidden) -> Self
Converts to this type from the input type.
Source§impl From<SetSensorOverrideEnabled> for EmulationCommands
impl From<SetSensorOverrideEnabled> for EmulationCommands
Source§fn from(v: SetSensorOverrideEnabled) -> Self
fn from(v: SetSensorOverrideEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetSensorOverrideReadings> for EmulationCommands
impl From<SetSensorOverrideReadings> for EmulationCommands
Source§fn from(v: SetSensorOverrideReadings) -> Self
fn from(v: SetSensorOverrideReadings) -> Self
Converts to this type from the input type.
Source§impl From<SetSmallViewportHeightDifferenceOverride> for EmulationCommands
impl From<SetSmallViewportHeightDifferenceOverride> for EmulationCommands
Source§fn from(v: SetSmallViewportHeightDifferenceOverride) -> Self
fn from(v: SetSmallViewportHeightDifferenceOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetTimezoneOverride> for EmulationCommands
impl From<SetTimezoneOverride> for EmulationCommands
Source§fn from(v: SetTimezoneOverride) -> Self
fn from(v: SetTimezoneOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetTouchEmulationEnabled> for EmulationCommands
impl From<SetTouchEmulationEnabled> for EmulationCommands
Source§fn from(v: SetTouchEmulationEnabled) -> Self
fn from(v: SetTouchEmulationEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetUserAgentOverride> for EmulationCommands
impl From<SetUserAgentOverride> for EmulationCommands
Source§fn from(v: SetUserAgentOverride) -> Self
fn from(v: SetUserAgentOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetVirtualTimePolicy> for EmulationCommands
impl From<SetVirtualTimePolicy> for EmulationCommands
Source§fn from(v: SetVirtualTimePolicy) -> Self
fn from(v: SetVirtualTimePolicy) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EmulationCommands
impl PartialEq for EmulationCommands
Source§impl Serialize for EmulationCommands
impl Serialize for EmulationCommands
Source§impl TryFrom<BrowserProtocolCommands> for EmulationCommands
impl TryFrom<BrowserProtocolCommands> for EmulationCommands
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, <EmulationCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <EmulationCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for EmulationCommands
impl TryFrom<Command> for EmulationCommands
Source§impl TryFrom<EmulationCommands> for AddScreen
impl TryFrom<EmulationCommands> for AddScreen
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, <AddScreen as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <AddScreen as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for ClearDeviceMetricsOverride
impl TryFrom<EmulationCommands> for ClearDeviceMetricsOverride
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, <ClearDeviceMetricsOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <ClearDeviceMetricsOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for ClearDevicePostureOverride
impl TryFrom<EmulationCommands> for ClearDevicePostureOverride
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, <ClearDevicePostureOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <ClearDevicePostureOverride as TryFrom<EmulationCommands>>::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.
Source§impl TryFrom<EmulationCommands> for ClearGeolocationOverride
impl TryFrom<EmulationCommands> for ClearGeolocationOverride
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, <ClearGeolocationOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <ClearGeolocationOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for ClearIdleOverride
impl TryFrom<EmulationCommands> for ClearIdleOverride
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, <ClearIdleOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <ClearIdleOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for GetOverriddenSensorInformation
impl TryFrom<EmulationCommands> for GetOverriddenSensorInformation
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, <GetOverriddenSensorInformation as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <GetOverriddenSensorInformation as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for GetScreenInfos
impl TryFrom<EmulationCommands> for GetScreenInfos
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, <GetScreenInfos as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <GetScreenInfos as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for RemoveScreen
impl TryFrom<EmulationCommands> for RemoveScreen
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, <RemoveScreen as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <RemoveScreen as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for ResetPageScaleFactor
impl TryFrom<EmulationCommands> for ResetPageScaleFactor
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, <ResetPageScaleFactor as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <ResetPageScaleFactor as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetAutoDarkModeOverride
impl TryFrom<EmulationCommands> for SetAutoDarkModeOverride
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, <SetAutoDarkModeOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetAutoDarkModeOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetAutomationOverride
impl TryFrom<EmulationCommands> for SetAutomationOverride
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, <SetAutomationOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetAutomationOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetCpuThrottlingRate
impl TryFrom<EmulationCommands> for SetCpuThrottlingRate
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, <SetCpuThrottlingRate as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetCpuThrottlingRate as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetDataSaverOverride
impl TryFrom<EmulationCommands> for SetDataSaverOverride
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, <SetDataSaverOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDataSaverOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetDefaultBackgroundColorOverride
impl TryFrom<EmulationCommands> for SetDefaultBackgroundColorOverride
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, <SetDefaultBackgroundColorOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDefaultBackgroundColorOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetDeviceMetricsOverride
impl TryFrom<EmulationCommands> for SetDeviceMetricsOverride
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, <SetDeviceMetricsOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDeviceMetricsOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetDevicePostureOverride
impl TryFrom<EmulationCommands> for SetDevicePostureOverride
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, <SetDevicePostureOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDevicePostureOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetDisabledImageTypes
impl TryFrom<EmulationCommands> for SetDisabledImageTypes
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, <SetDisabledImageTypes as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDisabledImageTypes as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
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.
Source§impl TryFrom<EmulationCommands> for SetDocumentCookieDisabled
impl TryFrom<EmulationCommands> for SetDocumentCookieDisabled
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, <SetDocumentCookieDisabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDocumentCookieDisabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetEmitTouchEventsForMouse
impl TryFrom<EmulationCommands> for SetEmitTouchEventsForMouse
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, <SetEmitTouchEventsForMouse as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetEmitTouchEventsForMouse as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetEmulatedMedia
impl TryFrom<EmulationCommands> for SetEmulatedMedia
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, <SetEmulatedMedia as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetEmulatedMedia as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetEmulatedOsTextScale
impl TryFrom<EmulationCommands> for SetEmulatedOsTextScale
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, <SetEmulatedOsTextScale as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetEmulatedOsTextScale as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetEmulatedVisionDeficiency
impl TryFrom<EmulationCommands> for SetEmulatedVisionDeficiency
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, <SetEmulatedVisionDeficiency as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetEmulatedVisionDeficiency as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetFocusEmulationEnabled
impl TryFrom<EmulationCommands> for SetFocusEmulationEnabled
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, <SetFocusEmulationEnabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetFocusEmulationEnabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetGeolocationOverride
impl TryFrom<EmulationCommands> for SetGeolocationOverride
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, <SetGeolocationOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetGeolocationOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetHardwareConcurrencyOverride
impl TryFrom<EmulationCommands> for SetHardwareConcurrencyOverride
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, <SetHardwareConcurrencyOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetHardwareConcurrencyOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetIdleOverride
impl TryFrom<EmulationCommands> for SetIdleOverride
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, <SetIdleOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetIdleOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetLocaleOverride
impl TryFrom<EmulationCommands> for SetLocaleOverride
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, <SetLocaleOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetLocaleOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetPageScaleFactor
impl TryFrom<EmulationCommands> for SetPageScaleFactor
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, <SetPageScaleFactor as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetPageScaleFactor as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetPressureDataOverride
impl TryFrom<EmulationCommands> for SetPressureDataOverride
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, <SetPressureDataOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetPressureDataOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetPressureSourceOverrideEnabled
impl TryFrom<EmulationCommands> for SetPressureSourceOverrideEnabled
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, <SetPressureSourceOverrideEnabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetPressureSourceOverrideEnabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetPressureStateOverride
impl TryFrom<EmulationCommands> for SetPressureStateOverride
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, <SetPressureStateOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetPressureStateOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetSafeAreaInsetsOverride
impl TryFrom<EmulationCommands> for SetSafeAreaInsetsOverride
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, <SetSafeAreaInsetsOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetSafeAreaInsetsOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetScriptExecutionDisabled
impl TryFrom<EmulationCommands> for SetScriptExecutionDisabled
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, <SetScriptExecutionDisabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetScriptExecutionDisabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetScrollbarsHidden
impl TryFrom<EmulationCommands> for SetScrollbarsHidden
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, <SetScrollbarsHidden as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetScrollbarsHidden as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetSensorOverrideEnabled
impl TryFrom<EmulationCommands> for SetSensorOverrideEnabled
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, <SetSensorOverrideEnabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetSensorOverrideEnabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetSensorOverrideReadings
impl TryFrom<EmulationCommands> for SetSensorOverrideReadings
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, <SetSensorOverrideReadings as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetSensorOverrideReadings as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetSmallViewportHeightDifferenceOverride
impl TryFrom<EmulationCommands> for SetSmallViewportHeightDifferenceOverride
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, <SetSmallViewportHeightDifferenceOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetSmallViewportHeightDifferenceOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetTimezoneOverride
impl TryFrom<EmulationCommands> for SetTimezoneOverride
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, <SetTimezoneOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetTimezoneOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetTouchEmulationEnabled
impl TryFrom<EmulationCommands> for SetTouchEmulationEnabled
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, <SetTouchEmulationEnabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetTouchEmulationEnabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetUserAgentOverride
impl TryFrom<EmulationCommands> for SetUserAgentOverride
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, <SetUserAgentOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetUserAgentOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetVirtualTimePolicy
impl TryFrom<EmulationCommands> for SetVirtualTimePolicy
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, <SetVirtualTimePolicy as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetVirtualTimePolicy as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for EmulationCommands
Auto Trait Implementations§
impl Freeze for EmulationCommands
impl RefUnwindSafe for EmulationCommands
impl Send for EmulationCommands
impl Sync for EmulationCommands
impl Unpin for EmulationCommands
impl UnsafeUnpin for EmulationCommands
impl UnwindSafe for EmulationCommands
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