pub struct SetSensorOverrideEnabledReturns {}Expand description
Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead. setSensorOverrideEnabled
Trait Implementations§
Source§impl Clone for SetSensorOverrideEnabledReturns
impl Clone for SetSensorOverrideEnabledReturns
Source§fn clone(&self) -> SetSensorOverrideEnabledReturns
fn clone(&self) -> SetSensorOverrideEnabledReturns
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 Default for SetSensorOverrideEnabledReturns
impl Default for SetSensorOverrideEnabledReturns
Source§fn default() -> SetSensorOverrideEnabledReturns
fn default() -> SetSensorOverrideEnabledReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetSensorOverrideEnabledReturns
impl<'de> Deserialize<'de> for SetSensorOverrideEnabledReturns
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetSensorOverrideEnabledReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetSensorOverrideEnabledReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SetSensorOverrideEnabledReturns
impl PartialEq for SetSensorOverrideEnabledReturns
Source§fn eq(&self, other: &SetSensorOverrideEnabledReturns) -> bool
fn eq(&self, other: &SetSensorOverrideEnabledReturns) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SetSensorOverrideEnabledReturns
impl Serialize for SetSensorOverrideEnabledReturns
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SetSensorOverrideEnabledReturns
Auto Trait Implementations§
impl Freeze for SetSensorOverrideEnabledReturns
impl RefUnwindSafe for SetSensorOverrideEnabledReturns
impl Send for SetSensorOverrideEnabledReturns
impl Sync for SetSensorOverrideEnabledReturns
impl Unpin for SetSensorOverrideEnabledReturns
impl UnwindSafe for SetSensorOverrideEnabledReturns
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