Struct SensorFeatureReport
pub struct SensorFeatureReport {
pub report_interval: Option<i64>,
pub sensitivity: Option<Vec<i64>>,
pub reporting_state: Option<SensorReportingState>,
pub threshold_high: Option<Vec<i64>>,
pub threshold_low: Option<Vec<i64>>,
pub sampling_rate: Option<i64>,
/* private fields */
}
Expand description
A SensorFeatureReport describes the features of a given sensor. If a FeatureReport is sent to the Input Device it sets the configuration of the device. If a FeatureReport is requested from the Input Device it shows the device’s current configuration.
Fields§
§report_interval: Option<i64>
The time between reports sent by the sensor.
sensitivity: Option<Vec<i64>>
The sensitivity for various SensorType
. This vector must be given in
the order of the descriptor’s sensitivity
vector.
reporting_state: Option<SensorReportingState>
This determines when the sensor will send reports.
threshold_high: Option<Vec<i64>>
The high thresholds for various SensorType
. This vector must be given in
the order of the descriptor’s threshold_high
vector.
threshold_low: Option<Vec<i64>>
The low thresholds for various SensorType
. This vector must be given in
the order of the descriptor’s threshold_low
vector.
sampling_rate: Option<i64>
The rate at which the sensor is sampled.
Trait Implementations§
§impl Clone for SensorFeatureReport
impl Clone for SensorFeatureReport
§fn clone(&self) -> SensorFeatureReport
fn clone(&self) -> SensorFeatureReport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for SensorFeatureReport
impl Debug for SensorFeatureReport
§impl<D> Decode<SensorFeatureReport, D> for SensorFeatureReportwhere
D: ResourceDialect,
impl<D> Decode<SensorFeatureReport, D> for SensorFeatureReportwhere
D: ResourceDialect,
§fn new_empty() -> SensorFeatureReport
fn new_empty() -> SensorFeatureReport
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for SensorFeatureReport
impl Default for SensorFeatureReport
§fn default() -> SensorFeatureReport
fn default() -> SensorFeatureReport
§impl<D> Encode<SensorFeatureReport, D> for &SensorFeatureReportwhere
D: ResourceDialect,
impl<D> Encode<SensorFeatureReport, D> for &SensorFeatureReportwhere
D: ResourceDialect,
§impl PartialEq for SensorFeatureReport
impl PartialEq for SensorFeatureReport
§impl TypeMarker for SensorFeatureReport
impl TypeMarker for SensorFeatureReport
§type Owned = SensorFeatureReport
type Owned = SensorFeatureReport
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§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 more§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.§impl ValueTypeMarker for SensorFeatureReport
impl ValueTypeMarker for SensorFeatureReport
§type Borrowed<'a> = &'a SensorFeatureReport
type Borrowed<'a> = &'a SensorFeatureReport
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<SensorFeatureReport as TypeMarker>::Owned,
) -> <SensorFeatureReport as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<SensorFeatureReport as TypeMarker>::Owned, ) -> <SensorFeatureReport as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.