pub struct SetPressureSourceOverrideEnabled {
pub method: SetPressureSourceOverrideEnabledMethod,
pub params: SetPressureSourceOverrideEnabledParams,
}Expand description
Overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data. setPressureSourceOverrideEnabled
Fields§
§method: SetPressureSourceOverrideEnabledMethod§params: SetPressureSourceOverrideEnabledParamsImplementations§
Source§impl SetPressureSourceOverrideEnabled
impl SetPressureSourceOverrideEnabled
pub fn builder() -> SetPressureSourceOverrideEnabledBuilder
Source§impl SetPressureSourceOverrideEnabled
impl SetPressureSourceOverrideEnabled
pub const IDENTIFIER: &'static str = "Emulation.setPressureSourceOverrideEnabled"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetPressureSourceOverrideEnabled
impl Clone for SetPressureSourceOverrideEnabled
Source§fn clone(&self) -> SetPressureSourceOverrideEnabled
fn clone(&self) -> SetPressureSourceOverrideEnabled
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 SetPressureSourceOverrideEnabled
impl CommandResult for SetPressureSourceOverrideEnabled
type Result = SetPressureSourceOverrideEnabledResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for SetPressureSourceOverrideEnabled
impl<'de> Deserialize<'de> for SetPressureSourceOverrideEnabled
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<SetPressureSourceOverrideEnabled> for BrowserProtocolCommands
impl From<SetPressureSourceOverrideEnabled> for BrowserProtocolCommands
Source§fn from(v: SetPressureSourceOverrideEnabled) -> Self
fn from(v: SetPressureSourceOverrideEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureSourceOverrideEnabled> for Command
impl From<SetPressureSourceOverrideEnabled> for Command
Source§fn from(v: SetPressureSourceOverrideEnabled) -> Self
fn from(v: SetPressureSourceOverrideEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureSourceOverrideEnabled> for EmulationCommands
impl From<SetPressureSourceOverrideEnabled> for EmulationCommands
Source§fn from(v: SetPressureSourceOverrideEnabled) -> Self
fn from(v: SetPressureSourceOverrideEnabled) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetPressureSourceOverrideEnabled
impl PartialEq for SetPressureSourceOverrideEnabled
Source§fn eq(&self, other: &SetPressureSourceOverrideEnabled) -> bool
fn eq(&self, other: &SetPressureSourceOverrideEnabled) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for SetPressureSourceOverrideEnabled
impl TryFrom<BrowserProtocolCommands> for SetPressureSourceOverrideEnabled
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, <SetPressureSourceOverrideEnabled as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetPressureSourceOverrideEnabled as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for SetPressureSourceOverrideEnabled
impl TryFrom<EmulationCommands> for SetPressureSourceOverrideEnabled
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, <SetPressureSourceOverrideEnabled as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetPressureSourceOverrideEnabled as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetPressureSourceOverrideEnabled
Auto Trait Implementations§
impl Freeze for SetPressureSourceOverrideEnabled
impl RefUnwindSafe for SetPressureSourceOverrideEnabled
impl Send for SetPressureSourceOverrideEnabled
impl Sync for SetPressureSourceOverrideEnabled
impl Unpin for SetPressureSourceOverrideEnabled
impl UnsafeUnpin for SetPressureSourceOverrideEnabled
impl UnwindSafe for SetPressureSourceOverrideEnabled
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