pub enum DeviceOrientationCommands {
ClearDeviceOrientationOverride(ClearDeviceOrientationOverride),
SetDeviceOrientationOverride(SetDeviceOrientationOverride),
}Variants§
ClearDeviceOrientationOverride(ClearDeviceOrientationOverride)
SetDeviceOrientationOverride(SetDeviceOrientationOverride)
Implementations§
Source§impl DeviceOrientationCommands
impl DeviceOrientationCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for DeviceOrientationCommands
impl Clone for DeviceOrientationCommands
Source§fn clone(&self) -> DeviceOrientationCommands
fn clone(&self) -> DeviceOrientationCommands
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 DeviceOrientationCommands
impl Debug for DeviceOrientationCommands
Source§impl<'de> Deserialize<'de> for DeviceOrientationCommands
impl<'de> Deserialize<'de> for DeviceOrientationCommands
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<ClearDeviceOrientationOverride> for DeviceOrientationCommands
impl From<ClearDeviceOrientationOverride> for DeviceOrientationCommands
Source§fn from(v: ClearDeviceOrientationOverride) -> Self
fn from(v: ClearDeviceOrientationOverride) -> Self
Converts to this type from the input type.
Source§impl From<DeviceOrientationCommands> for BrowserProtocolCommands
impl From<DeviceOrientationCommands> for BrowserProtocolCommands
Source§fn from(v: DeviceOrientationCommands) -> Self
fn from(v: DeviceOrientationCommands) -> Self
Converts to this type from the input type.
Source§impl From<DeviceOrientationCommands> for Command
impl From<DeviceOrientationCommands> for Command
Source§fn from(v: DeviceOrientationCommands) -> Self
fn from(v: DeviceOrientationCommands) -> Self
Converts to this type from the input type.
Source§impl From<SetDeviceOrientationOverride> for DeviceOrientationCommands
impl From<SetDeviceOrientationOverride> for DeviceOrientationCommands
Source§fn from(v: SetDeviceOrientationOverride) -> Self
fn from(v: SetDeviceOrientationOverride) -> Self
Converts to this type from the input type.
Source§impl TryFrom<BrowserProtocolCommands> for DeviceOrientationCommands
impl TryFrom<BrowserProtocolCommands> for DeviceOrientationCommands
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, <DeviceOrientationCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <DeviceOrientationCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for DeviceOrientationCommands
impl TryFrom<Command> for DeviceOrientationCommands
Source§impl TryFrom<DeviceOrientationCommands> for ClearDeviceOrientationOverride
impl TryFrom<DeviceOrientationCommands> for ClearDeviceOrientationOverride
Source§type Error = DeviceOrientationCommands
type Error = DeviceOrientationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DeviceOrientationCommands,
) -> Result<Self, <ClearDeviceOrientationOverride as TryFrom<DeviceOrientationCommands>>::Error>
fn try_from( e: DeviceOrientationCommands, ) -> Result<Self, <ClearDeviceOrientationOverride as TryFrom<DeviceOrientationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<DeviceOrientationCommands> for SetDeviceOrientationOverride
impl TryFrom<DeviceOrientationCommands> for SetDeviceOrientationOverride
Source§type Error = DeviceOrientationCommands
type Error = DeviceOrientationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DeviceOrientationCommands,
) -> Result<Self, <SetDeviceOrientationOverride as TryFrom<DeviceOrientationCommands>>::Error>
fn try_from( e: DeviceOrientationCommands, ) -> Result<Self, <SetDeviceOrientationOverride as TryFrom<DeviceOrientationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for DeviceOrientationCommands
Auto Trait Implementations§
impl Freeze for DeviceOrientationCommands
impl RefUnwindSafe for DeviceOrientationCommands
impl Send for DeviceOrientationCommands
impl Sync for DeviceOrientationCommands
impl Unpin for DeviceOrientationCommands
impl UnsafeUnpin for DeviceOrientationCommands
impl UnwindSafe for DeviceOrientationCommands
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