pub struct SensorFeatureReport<'de> { /* private fields */ }Expand description
The wire type corresponding to SensorFeatureReport.
Implementations§
Source§impl<'de> SensorFeatureReport<'de>
impl<'de> SensorFeatureReport<'de>
pub fn report_interval(&self) -> Option<&Int64>
pub fn sensitivity(&self) -> Option<&Vector<'de, Int64>>
pub fn reporting_state(&self) -> Option<&SensorReportingState>
pub fn threshold_high(&self) -> Option<&Vector<'de, Int64>>
pub fn threshold_low(&self) -> Option<&Vector<'de, Int64>>
pub fn sampling_rate(&self) -> Option<&Int64>
Trait Implementations§
Source§impl Constrained for SensorFeatureReport<'_>
impl Constrained for SensorFeatureReport<'_>
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, SensorFeatureReport<'_>>,
_: <SensorFeatureReport<'_> as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, SensorFeatureReport<'_>>, _: <SensorFeatureReport<'_> as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl<'de> Debug for SensorFeatureReport<'de>
impl<'de> Debug for SensorFeatureReport<'de>
Source§impl<'de, ___D> Decode<___D> for SensorFeatureReport<'de>where
___D: Decoder<'de> + ?Sized,
impl<'de, ___D> Decode<___D> for SensorFeatureReport<'de>where
___D: Decoder<'de> + ?Sized,
Source§impl<'de> Drop for SensorFeatureReport<'de>
impl<'de> Drop for SensorFeatureReport<'de>
Source§impl<'a, ___E> Encode<SensorFeatureReport<'static>, ___E> for &'a SensorFeatureReportwhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<SensorFeatureReport<'static>, ___E> for &'a SensorFeatureReportwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<SensorFeatureReport<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<SensorFeatureReport<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<SensorFeatureReport<'static>, ___E> for SensorFeatureReportwhere
___E: Encoder + ?Sized,
impl<___E> Encode<SensorFeatureReport<'static>, ___E> for SensorFeatureReportwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<SensorFeatureReport<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<SensorFeatureReport<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<SensorFeatureReport<'de>> for SensorFeatureReport
impl<'de> FromWire<SensorFeatureReport<'de>> for SensorFeatureReport
Source§fn from_wire(wire_: SensorFeatureReport<'de>) -> SensorFeatureReport
fn from_wire(wire_: SensorFeatureReport<'de>) -> SensorFeatureReport
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<SensorFeatureReport<'de>> for SensorFeatureReport
impl<'de> FromWireRef<SensorFeatureReport<'de>> for SensorFeatureReport
Source§fn from_wire_ref(wire: &SensorFeatureReport<'de>) -> SensorFeatureReport
fn from_wire_ref(wire: &SensorFeatureReport<'de>) -> SensorFeatureReport
Converts the given reference to this type.
Source§impl<'de> IntoNatural for SensorFeatureReport<'de>
impl<'de> IntoNatural for SensorFeatureReport<'de>
Source§type Natural = SensorFeatureReport
type Natural = SensorFeatureReport
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for SensorFeatureReport<'static>
impl Wire for SensorFeatureReport<'static>
Source§type Narrowed<'de> = SensorFeatureReport<'de>
type Narrowed<'de> = SensorFeatureReport<'de>
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<SensorFeatureReport<'static>>)
fn zero_padding(out: &mut MaybeUninit<SensorFeatureReport<'static>>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de> Freeze for SensorFeatureReport<'de>
impl<'de> RefUnwindSafe for SensorFeatureReport<'de>
impl<'de> Send for SensorFeatureReport<'de>
impl<'de> Sync for SensorFeatureReport<'de>
impl<'de> Unpin for SensorFeatureReport<'de>
impl<'de> UnsafeUnpin for SensorFeatureReport<'de>
impl<'de> !UnwindSafe for SensorFeatureReport<'de>
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
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]