pub struct SetSmallViewportHeightDifferenceOverride {
pub method: SetSmallViewportHeightDifferenceOverrideMethod,
pub params: SetSmallViewportHeightDifferenceOverrideParams,
}Expand description
Allows overriding the difference between the small and large viewport sizes, which determine the
value of the svh and lvh unit, respectively. Only supported for top-level frames.
setSmallViewportHeightDifferenceOverride
Fields§
§method: SetSmallViewportHeightDifferenceOverrideMethod§params: SetSmallViewportHeightDifferenceOverrideParamsImplementations§
Source§impl SetSmallViewportHeightDifferenceOverride
impl SetSmallViewportHeightDifferenceOverride
pub const IDENTIFIER: &'static str = "Emulation.setSmallViewportHeightDifferenceOverride"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetSmallViewportHeightDifferenceOverride
impl Clone for SetSmallViewportHeightDifferenceOverride
Source§fn clone(&self) -> SetSmallViewportHeightDifferenceOverride
fn clone(&self) -> SetSmallViewportHeightDifferenceOverride
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 CommandResult for SetSmallViewportHeightDifferenceOverride
impl CommandResult for SetSmallViewportHeightDifferenceOverride
type Result = SetSmallViewportHeightDifferenceOverrideResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for SetSmallViewportHeightDifferenceOverride
impl<'de> Deserialize<'de> for SetSmallViewportHeightDifferenceOverride
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<SetSmallViewportHeightDifferenceOverride> for BrowserProtocolCommands
impl From<SetSmallViewportHeightDifferenceOverride> for BrowserProtocolCommands
Source§fn from(v: SetSmallViewportHeightDifferenceOverride) -> Self
fn from(v: SetSmallViewportHeightDifferenceOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetSmallViewportHeightDifferenceOverride> for Command
impl From<SetSmallViewportHeightDifferenceOverride> for Command
Source§fn from(v: SetSmallViewportHeightDifferenceOverride) -> Self
fn from(v: SetSmallViewportHeightDifferenceOverride) -> 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 PartialEq for SetSmallViewportHeightDifferenceOverride
impl PartialEq for SetSmallViewportHeightDifferenceOverride
Source§fn eq(&self, other: &SetSmallViewportHeightDifferenceOverride) -> bool
fn eq(&self, other: &SetSmallViewportHeightDifferenceOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for SetSmallViewportHeightDifferenceOverride
impl TryFrom<BrowserProtocolCommands> for SetSmallViewportHeightDifferenceOverride
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, <SetSmallViewportHeightDifferenceOverride as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetSmallViewportHeightDifferenceOverride as TryFrom<BrowserProtocolCommands>>::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.
impl StructuralPartialEq for SetSmallViewportHeightDifferenceOverride
Auto Trait Implementations§
impl Freeze for SetSmallViewportHeightDifferenceOverride
impl RefUnwindSafe for SetSmallViewportHeightDifferenceOverride
impl Send for SetSmallViewportHeightDifferenceOverride
impl Sync for SetSmallViewportHeightDifferenceOverride
impl Unpin for SetSmallViewportHeightDifferenceOverride
impl UnsafeUnpin for SetSmallViewportHeightDifferenceOverride
impl UnwindSafe for SetSmallViewportHeightDifferenceOverride
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