pub struct ScreenOrientationLockChangedEvent {
pub locked: bool,
pub orientation: Option<ScreenOrientation>,
}Expand description
Fired when a page calls screen.orientation.lock() or screen.orientation.unlock() while device emulation is enabled. This allows the DevTools frontend to update the emulated device orientation accordingly.
Experimental: may change without notice.
Payload of the Emulation.screenOrientationLockChanged event.
Fields§
§locked: boolWhether the screen orientation is currently locked.
orientation: Option<ScreenOrientation>The orientation lock type requested by the page. Only set when locked is true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScreenOrientationLockChangedEvent
impl<'de> Deserialize<'de> for ScreenOrientationLockChangedEvent
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
impl StructuralPartialEq for ScreenOrientationLockChangedEvent
Auto Trait Implementations§
impl Forget for ScreenOrientationLockChangedEvent
impl Freeze for ScreenOrientationLockChangedEvent
impl RefUnwindSafe for ScreenOrientationLockChangedEvent
impl Send for ScreenOrientationLockChangedEvent
impl Sync for ScreenOrientationLockChangedEvent
impl Unpin for ScreenOrientationLockChangedEvent
impl UnsafeUnpin for ScreenOrientationLockChangedEvent
impl UnwindSafe for ScreenOrientationLockChangedEvent
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