Skip to main content

EmulationCommands

Enum EmulationCommands 

Source
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

Source

pub fn identifier(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for EmulationCommands

Source§

fn clone(&self) -> EmulationCommands

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EmulationCommands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EmulationCommands

Source§

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

Source§

fn from(v: AddScreen) -> Self

Converts to this type from the input type.
Source§

impl From<ClearDeviceMetricsOverride> for EmulationCommands

Source§

fn from(v: ClearDeviceMetricsOverride) -> Self

Converts to this type from the input type.
Source§

impl From<ClearDevicePostureOverride> for EmulationCommands

Source§

fn from(v: ClearDevicePostureOverride) -> Self

Converts to this type from the input type.
Source§

impl From<ClearDisplayFeaturesOverride> for EmulationCommands

Source§

fn from(v: ClearDisplayFeaturesOverride) -> Self

Converts to this type from the input type.
Source§

impl From<ClearGeolocationOverride> for EmulationCommands

Source§

fn from(v: ClearGeolocationOverride) -> Self

Converts to this type from the input type.
Source§

impl From<ClearIdleOverride> for EmulationCommands

Source§

fn from(v: ClearIdleOverride) -> Self

Converts to this type from the input type.
Source§

impl From<EmulationCommands> for BrowserProtocolCommands

Source§

fn from(v: EmulationCommands) -> Self

Converts to this type from the input type.
Source§

impl From<EmulationCommands> for Command

Source§

fn from(v: EmulationCommands) -> Self

Converts to this type from the input type.
Source§

impl From<GetOverriddenSensorInformation> for EmulationCommands

Source§

fn from(v: GetOverriddenSensorInformation) -> Self

Converts to this type from the input type.
Source§

impl From<GetScreenInfos> for EmulationCommands

Source§

fn from(v: GetScreenInfos) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveScreen> for EmulationCommands

Source§

fn from(v: RemoveScreen) -> Self

Converts to this type from the input type.
Source§

impl From<ResetPageScaleFactor> for EmulationCommands

Source§

fn from(v: ResetPageScaleFactor) -> Self

Converts to this type from the input type.
Source§

impl From<SetAutoDarkModeOverride> for EmulationCommands

Source§

fn from(v: SetAutoDarkModeOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetAutomationOverride> for EmulationCommands

Source§

fn from(v: SetAutomationOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetCpuThrottlingRate> for EmulationCommands

Source§

fn from(v: SetCpuThrottlingRate) -> Self

Converts to this type from the input type.
Source§

impl From<SetDataSaverOverride> for EmulationCommands

Source§

fn from(v: SetDataSaverOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetDefaultBackgroundColorOverride> for EmulationCommands

Source§

fn from(v: SetDefaultBackgroundColorOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetDeviceMetricsOverride> for EmulationCommands

Source§

fn from(v: SetDeviceMetricsOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetDevicePostureOverride> for EmulationCommands

Source§

fn from(v: SetDevicePostureOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetDisabledImageTypes> for EmulationCommands

Source§

fn from(v: SetDisabledImageTypes) -> Self

Converts to this type from the input type.
Source§

impl From<SetDisplayFeaturesOverride> for EmulationCommands

Source§

fn from(v: SetDisplayFeaturesOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetDocumentCookieDisabled> for EmulationCommands

Source§

fn from(v: SetDocumentCookieDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetEmitTouchEventsForMouse> for EmulationCommands

Source§

fn from(v: SetEmitTouchEventsForMouse) -> Self

Converts to this type from the input type.
Source§

impl From<SetEmulatedMedia> for EmulationCommands

Source§

fn from(v: SetEmulatedMedia) -> Self

Converts to this type from the input type.
Source§

impl From<SetEmulatedOsTextScale> for EmulationCommands

Source§

fn from(v: SetEmulatedOsTextScale) -> Self

Converts to this type from the input type.
Source§

impl From<SetEmulatedVisionDeficiency> for EmulationCommands

Source§

fn from(v: SetEmulatedVisionDeficiency) -> Self

Converts to this type from the input type.
Source§

impl From<SetFocusEmulationEnabled> for EmulationCommands

Source§

fn from(v: SetFocusEmulationEnabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetGeolocationOverride> for EmulationCommands

Source§

fn from(v: SetGeolocationOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetHardwareConcurrencyOverride> for EmulationCommands

Source§

fn from(v: SetHardwareConcurrencyOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetIdleOverride> for EmulationCommands

Source§

fn from(v: SetIdleOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetLocaleOverride> for EmulationCommands

Source§

fn from(v: SetLocaleOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetPageScaleFactor> for EmulationCommands

Source§

fn from(v: SetPageScaleFactor) -> Self

Converts to this type from the input type.
Source§

impl From<SetPressureDataOverride> for EmulationCommands

Source§

fn from(v: SetPressureDataOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetPressureSourceOverrideEnabled> for EmulationCommands

Source§

fn from(v: SetPressureSourceOverrideEnabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetPressureStateOverride> for EmulationCommands

Source§

fn from(v: SetPressureStateOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetSafeAreaInsetsOverride> for EmulationCommands

Source§

fn from(v: SetSafeAreaInsetsOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetScriptExecutionDisabled> for EmulationCommands

Source§

fn from(v: SetScriptExecutionDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetScrollbarsHidden> for EmulationCommands

Source§

fn from(v: SetScrollbarsHidden) -> Self

Converts to this type from the input type.
Source§

impl From<SetSensorOverrideEnabled> for EmulationCommands

Source§

fn from(v: SetSensorOverrideEnabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetSensorOverrideReadings> for EmulationCommands

Source§

fn from(v: SetSensorOverrideReadings) -> Self

Converts to this type from the input type.
Source§

impl From<SetSmallViewportHeightDifferenceOverride> for EmulationCommands

Source§

fn from(v: SetSmallViewportHeightDifferenceOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetTimezoneOverride> for EmulationCommands

Source§

fn from(v: SetTimezoneOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetTouchEmulationEnabled> for EmulationCommands

Source§

fn from(v: SetTouchEmulationEnabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetUserAgentOverride> for EmulationCommands

Source§

fn from(v: SetUserAgentOverride) -> Self

Converts to this type from the input type.
Source§

impl From<SetVirtualTimePolicy> for EmulationCommands

Source§

fn from(v: SetVirtualTimePolicy) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for EmulationCommands

Source§

fn eq(&self, other: &EmulationCommands) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EmulationCommands

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<BrowserProtocolCommands> for EmulationCommands

Source§

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>

Performs the conversion.
Source§

impl TryFrom<Command> for EmulationCommands

Source§

type Error = Command

The type returned in the event of a conversion error.
Source§

fn try_from( e: Command, ) -> Result<Self, <EmulationCommands as TryFrom<Command>>::Error>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for AddScreen

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for ClearDeviceMetricsOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for ClearDevicePostureOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for ClearDisplayFeaturesOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for ClearGeolocationOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for ClearIdleOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for GetOverriddenSensorInformation

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for GetScreenInfos

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for RemoveScreen

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for ResetPageScaleFactor

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetAutoDarkModeOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetAutomationOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetCpuThrottlingRate

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDataSaverOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDefaultBackgroundColorOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDeviceMetricsOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDevicePostureOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDisabledImageTypes

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDisplayFeaturesOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetDocumentCookieDisabled

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetEmitTouchEventsForMouse

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetEmulatedMedia

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetEmulatedOsTextScale

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetEmulatedVisionDeficiency

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetFocusEmulationEnabled

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetGeolocationOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetHardwareConcurrencyOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetIdleOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetLocaleOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetPageScaleFactor

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetPressureDataOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetPressureSourceOverrideEnabled

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetPressureStateOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetSafeAreaInsetsOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetScriptExecutionDisabled

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetScrollbarsHidden

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetSensorOverrideEnabled

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetSensorOverrideReadings

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetSmallViewportHeightDifferenceOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetTimezoneOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetTouchEmulationEnabled

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetUserAgentOverride

Source§

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>

Performs the conversion.
Source§

impl TryFrom<EmulationCommands> for SetVirtualTimePolicy

Source§

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>

Performs the conversion.
Source§

impl StructuralPartialEq for EmulationCommands

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,