pub struct SetPressureStateOverride {
pub method: SetPressureStateOverrideMethod,
pub params: SetPressureStateOverrideParams,
}Expand description
TODO: OBSOLETE: To remove when setPressureDataOverride is merged. Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled. setPressureStateOverride
Fields§
§method: SetPressureStateOverrideMethod§params: SetPressureStateOverrideParamsImplementations§
Source§impl SetPressureStateOverride
impl SetPressureStateOverride
pub const IDENTIFIER: &'static str = "Emulation.setPressureStateOverride"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetPressureStateOverride
impl Clone for SetPressureStateOverride
Source§fn clone(&self) -> SetPressureStateOverride
fn clone(&self) -> SetPressureStateOverride
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 SetPressureStateOverride
impl CommandResult for SetPressureStateOverride
type Result = SetPressureStateOverrideResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetPressureStateOverride
impl Debug for SetPressureStateOverride
Source§impl<'de> Deserialize<'de> for SetPressureStateOverride
impl<'de> Deserialize<'de> for SetPressureStateOverride
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<SetPressureStateOverride> for BrowserProtocolCommands
impl From<SetPressureStateOverride> for BrowserProtocolCommands
Source§fn from(v: SetPressureStateOverride) -> Self
fn from(v: SetPressureStateOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureStateOverride> for Command
impl From<SetPressureStateOverride> for Command
Source§fn from(v: SetPressureStateOverride) -> Self
fn from(v: SetPressureStateOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureStateOverride> for EmulationCommands
impl From<SetPressureStateOverride> for EmulationCommands
Source§fn from(v: SetPressureStateOverride) -> Self
fn from(v: SetPressureStateOverride) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetPressureStateOverride
impl PartialEq for SetPressureStateOverride
Source§impl Serialize for SetPressureStateOverride
impl Serialize for SetPressureStateOverride
Source§impl TryFrom<BrowserProtocolCommands> for SetPressureStateOverride
impl TryFrom<BrowserProtocolCommands> for SetPressureStateOverride
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, <SetPressureStateOverride as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetPressureStateOverride as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetPressureStateOverride
impl TryFrom<Command> for SetPressureStateOverride
Source§impl TryFrom<EmulationCommands> for SetPressureStateOverride
impl TryFrom<EmulationCommands> for SetPressureStateOverride
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, <SetPressureStateOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetPressureStateOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetPressureStateOverride
Auto Trait Implementations§
impl Freeze for SetPressureStateOverride
impl RefUnwindSafe for SetPressureStateOverride
impl Send for SetPressureStateOverride
impl Sync for SetPressureStateOverride
impl Unpin for SetPressureStateOverride
impl UnsafeUnpin for SetPressureStateOverride
impl UnwindSafe for SetPressureStateOverride
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