pub enum EmulationCommand {
SetForcedColorsModeThemeOverride(SetForcedColorsModeThemeOverride),
SetGeolocationOverride(SetGeolocationOverride),
SetLocaleOverride(SetLocaleOverride),
SetNetworkConditions(SetNetworkConditions),
SetScreenOrientationOverride(SetScreenOrientationOverride),
SetUserAgentOverride(SetUserAgentOverride),
SetScriptingEnabled(SetScriptingEnabled),
SetTimezoneOverride(SetTimezoneOverride),
}Variants§
SetForcedColorsModeThemeOverride(SetForcedColorsModeThemeOverride)
SetGeolocationOverride(SetGeolocationOverride)
SetLocaleOverride(SetLocaleOverride)
SetNetworkConditions(SetNetworkConditions)
SetScreenOrientationOverride(SetScreenOrientationOverride)
SetUserAgentOverride(SetUserAgentOverride)
SetScriptingEnabled(SetScriptingEnabled)
SetTimezoneOverride(SetTimezoneOverride)
Implementations§
Source§impl EmulationCommand
impl EmulationCommand
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for EmulationCommand
impl Clone for EmulationCommand
Source§fn clone(&self) -> EmulationCommand
fn clone(&self) -> EmulationCommand
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 EmulationCommand
impl Debug for EmulationCommand
Source§impl<'de> Deserialize<'de> for EmulationCommand
impl<'de> Deserialize<'de> for EmulationCommand
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<EmulationCommand> for Command
impl From<EmulationCommand> for Command
Source§fn from(v: EmulationCommand) -> Self
fn from(v: EmulationCommand) -> Self
Converts to this type from the input type.
Source§impl From<SetForcedColorsModeThemeOverride> for EmulationCommand
impl From<SetForcedColorsModeThemeOverride> for EmulationCommand
Source§fn from(v: SetForcedColorsModeThemeOverride) -> Self
fn from(v: SetForcedColorsModeThemeOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetGeolocationOverride> for EmulationCommand
impl From<SetGeolocationOverride> for EmulationCommand
Source§fn from(v: SetGeolocationOverride) -> Self
fn from(v: SetGeolocationOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetLocaleOverride> for EmulationCommand
impl From<SetLocaleOverride> for EmulationCommand
Source§fn from(v: SetLocaleOverride) -> Self
fn from(v: SetLocaleOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetNetworkConditions> for EmulationCommand
impl From<SetNetworkConditions> for EmulationCommand
Source§fn from(v: SetNetworkConditions) -> Self
fn from(v: SetNetworkConditions) -> Self
Converts to this type from the input type.
Source§impl From<SetScreenOrientationOverride> for EmulationCommand
impl From<SetScreenOrientationOverride> for EmulationCommand
Source§fn from(v: SetScreenOrientationOverride) -> Self
fn from(v: SetScreenOrientationOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetScriptingEnabled> for EmulationCommand
impl From<SetScriptingEnabled> for EmulationCommand
Source§fn from(v: SetScriptingEnabled) -> Self
fn from(v: SetScriptingEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetTimezoneOverride> for EmulationCommand
impl From<SetTimezoneOverride> for EmulationCommand
Source§fn from(v: SetTimezoneOverride) -> Self
fn from(v: SetTimezoneOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetUserAgentOverride> for EmulationCommand
impl From<SetUserAgentOverride> for EmulationCommand
Source§fn from(v: SetUserAgentOverride) -> Self
fn from(v: SetUserAgentOverride) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EmulationCommand
impl PartialEq for EmulationCommand
Source§impl Serialize for EmulationCommand
impl Serialize for EmulationCommand
Source§impl TryFrom<Command> for EmulationCommand
impl TryFrom<Command> for EmulationCommand
Source§impl TryFrom<EmulationCommand> for SetForcedColorsModeThemeOverride
impl TryFrom<EmulationCommand> for SetForcedColorsModeThemeOverride
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetForcedColorsModeThemeOverride as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetForcedColorsModeThemeOverride as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetGeolocationOverride
impl TryFrom<EmulationCommand> for SetGeolocationOverride
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetGeolocationOverride as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetGeolocationOverride as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetLocaleOverride
impl TryFrom<EmulationCommand> for SetLocaleOverride
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetLocaleOverride as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetLocaleOverride as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetNetworkConditions
impl TryFrom<EmulationCommand> for SetNetworkConditions
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetNetworkConditions as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetNetworkConditions as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetScreenOrientationOverride
impl TryFrom<EmulationCommand> for SetScreenOrientationOverride
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetScreenOrientationOverride as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetScreenOrientationOverride as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetScriptingEnabled
impl TryFrom<EmulationCommand> for SetScriptingEnabled
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetScriptingEnabled as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetScriptingEnabled as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetTimezoneOverride
impl TryFrom<EmulationCommand> for SetTimezoneOverride
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetTimezoneOverride as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetTimezoneOverride as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommand> for SetUserAgentOverride
impl TryFrom<EmulationCommand> for SetUserAgentOverride
Source§type Error = EmulationCommand
type Error = EmulationCommand
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommand,
) -> Result<Self, <SetUserAgentOverride as TryFrom<EmulationCommand>>::Error>
fn try_from( e: EmulationCommand, ) -> Result<Self, <SetUserAgentOverride as TryFrom<EmulationCommand>>::Error>
Performs the conversion.
impl StructuralPartialEq for EmulationCommand
Auto Trait Implementations§
impl Freeze for EmulationCommand
impl RefUnwindSafe for EmulationCommand
impl Send for EmulationCommand
impl Sync for EmulationCommand
impl Unpin for EmulationCommand
impl UnsafeUnpin for EmulationCommand
impl UnwindSafe for EmulationCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more