pub struct SensorFeatureDescriptor {
pub report_interval: Option<Axis>,
pub sensitivity: Option<Vec<SensorAxis>>,
pub supports_reporting_state: Option<bool>,
pub threshold_high: Option<Vec<SensorAxis>>,
pub threshold_low: Option<Vec<SensorAxis>>,
pub sampling_rate: Option<Axis>,
pub report_id: Option<u8>,
/* private fields */
}Expand description
Describes the format of the sensor’s feature report. Feature reports can be requested from the sensor, or sent to the sensor.
At least one of the fields below must be present.
Fields§
§report_interval: Option<Axis>Valid range of the reporting interval for the given SensorType.
Optional. Present iff sensor supports getting/setting the reporting interval.
sensitivity: Option<Vec<SensorAxis>>Valid range of the sensitivity for the given SensorType.
Optional. Present iff sensor supports getting/setting the sensitivity.
supports_reporting_state: Option<bool>True iff SensorFeatureReport supports setting/getting the
SensorReportingState.
Optional. Present iff sensor supports getting/setting the reporting state.
threshold_high: Option<Vec<SensorAxis>>Valid range of the high threshold values for the given SensorType.
Optional. Present iff sensor supports getting/setting the high threshold values.
threshold_low: Option<Vec<SensorAxis>>Valid range of the low threshold values for the given SensorType.
Optional. Present iff sensor supports getting/setting the low threshold values.
sampling_rate: Option<Axis>Valid range of sampling rates this sensor supports.
Optional. Present iff sensor supports getting/setting the sampling rate.
report_id: Option<u8>A sensor may have multiple feature descriptors of the same type. Reports with the same report ID are associated with this descriptor.
Required iff the sensor has more than one feature descriptors.
Trait Implementations§
Source§impl Clone for SensorFeatureDescriptor
impl Clone for SensorFeatureDescriptor
Source§fn clone(&self) -> SensorFeatureDescriptor
fn clone(&self) -> SensorFeatureDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SensorFeatureDescriptor
impl Debug for SensorFeatureDescriptor
Source§impl<D: ResourceDialect> Decode<SensorFeatureDescriptor, D> for SensorFeatureDescriptor
impl<D: ResourceDialect> Decode<SensorFeatureDescriptor, D> for SensorFeatureDescriptor
Source§impl Default for SensorFeatureDescriptor
impl Default for SensorFeatureDescriptor
Source§fn default() -> SensorFeatureDescriptor
fn default() -> SensorFeatureDescriptor
Source§impl<D: ResourceDialect> Encode<SensorFeatureDescriptor, D> for &SensorFeatureDescriptor
impl<D: ResourceDialect> Encode<SensorFeatureDescriptor, D> for &SensorFeatureDescriptor
Source§impl PartialEq for SensorFeatureDescriptor
impl PartialEq for SensorFeatureDescriptor
Source§fn eq(&self, other: &SensorFeatureDescriptor) -> bool
fn eq(&self, other: &SensorFeatureDescriptor) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for SensorFeatureDescriptor
impl TypeMarker for SensorFeatureDescriptor
Source§type Owned = SensorFeatureDescriptor
type Owned = SensorFeatureDescriptor
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for SensorFeatureDescriptor
impl ValueTypeMarker for SensorFeatureDescriptor
Source§type Borrowed<'a> = &'a SensorFeatureDescriptor
type Borrowed<'a> = &'a SensorFeatureDescriptor
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more